0

Having a String as below:

String s = "[{key1=value1, key2=4}, {key1=value2, key2=5}, {key1=value3, key2=10}]";

How can I convert it to List<Map<String,String>> in a gracious way? Was thinking of using ObjectInputStream somehow, but not able to come up with something.

The problem here is String it is not exactly in standard json format.

dhruvsharma
  • 125
  • 1
  • 13

0 Answers0