A json utility to help developer to extract object from json(Map) by extending apche MapUtils and ListUtils.
{
"firstLayer":{
"string":"example string",
"nestedMap":{
"nullObject":null,
"list":[
"item1",
"item2"]
}
}
}
If you are looking for item2
of list, you can declare a list of path as below.
List<Object> retrievingItem = ImmutableList.of("firstLayer", "nestedMap", "list", 2);