Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

org.json.jsonobject to java object

JSONObject jsonObject = //...
JsonNode jsonNode = convertJsonFormat(jsonObject);
ObjectMapper mapper = new ObjectMapper();
MyPojoClass myPojo = mapper.readValue(new TreeTraversingParser(jsonNode), MyPojoClass.class);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #object
ADD COMMENT
Topic
Name
7+4 =