I put a key-value pair in a Java HashMap and converted it to a String using the toString() method.
HashMap
String
toString()
Is it possible to convert t
This may be inefficient and indirect. But
String mapString = "someMap.toString()"; new HashMap<>(net.sf.json.JSONObject.fromObject(mapString));
should work !!!