I have a JSONObject
with some attributes that I want to convert into a Map<String, Object>
Is there something that I can use from the json.org or ObjectMapper
?
I have a JSONObject
with some attributes that I want to convert into a Map<String, Object>
Is there something that I can use from the json.org or ObjectMapper
?
use Jackson (https://github.com/FasterXML/jackson) from http://json.org/
HashMap<String,Object> result =
new ObjectMapper().readValue(<JSON_OBJECT>, HashMap.class);