Nested JSON structures
Posted: Mon Sep 22, 2014 12:42 pm
I appear to have found myself in need of help in figuring out how retrieve the contents of a nested json map.
The data above is an example of the kind of structure i could be dealing with.
How would a retrieve the entire structure into a map without knowing their type as i only appear to be able to get the base elements and not anything nested, any ideas?.
Code: Select all
{
"total": 2,
"jake": {"gender": "male", "age": 26},
"jane": {"gender": "female", "age": 24}
}
How would a retrieve the entire structure into a map without knowing their type as i only appear to be able to get the base elements and not anything nested, any ideas?.