What is the best way to convert a JSON code as this:
"field1" : "value1",
"field2" : "value2"
I hope you were joking about writing your own parser. :-)
HashMap<String,Object> result = new ObjectMapper().readValue(JSON_SOURCE, HashMap.class);
(where JSON_SOURCE is a File, input stream, reader, or json content String)