What is the best way to convert a JSON code as this:
{ \"data\" : { \"field1\" : \"value1\", \"field2\" : \"value2\" } }
One more alternative is json-simple which can be found in Maven Central:
(JSONObject)JSONValue.parse(someString); //JSONObject is actually a Map.
The artifact is 24kbytes, doesn't have other runtime dependencies.