-2

I have a String array like this "[{"ABCD":"google"},{"EFGH":"facebook"}]" I want it to convert into HashMap<String,String>

Reg
  • 9,920
  • 6
  • 32
  • 48
  • 2
    Looks like json. Use a json parsing library. Also, check [ask]. – Robert May 05 '22 at 15:49
  • Your string is a JSON, you could check on libraries like Google Gson or Jackson – ypdev19 May 05 '22 at 21:09
  • Look at: https://stackoverflow.com/questions/22011200/creating-hashmap-from-a-json-string or https://stackoverflow.com/questions/443499/convert-json-to-map – ypdev19 May 05 '22 at 21:11

0 Answers0