Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"Key1":"Value1","Key2":{"innerJSonKey":"innerJSonValue"}} this is the jsonobject which is converted to String using toString().
- **JSON Simple**
- JSONParser jp = new JSONParser();
- JSONObject jo = (JSONObject)jp.parse(jsonString);
- JSONObject innerjson = (JSONObject)jo.get("innerJSonKey"); -- this pretty much works
- ObjectMapper mapper = new ObjectMapper();
- JSONObject jo = mapper.readValue(jsonString,JSONObject.class);
- JSONObject innerjson = (JSONObject)jo.get("innerJSonKey"); -- **But this step is failing**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement