Jump to content

Jcontainer how to get nested map's keys


Good0Provider

Recommended Posts

I would like to use JContainers, but I can't figure how to get the keys for a nested map.   For example, how to list all the keys for the map at ".dog".

{
    "dog":{"name":bill","age":10}
}

 

I am looking for the function that would look like solveStrMapAllKeys(int object, String path).

 

Edited by Good0Provider
Link to comment
Share on other sites

Create a while loop, but instead of using indices, use it like an list iterator:

String function nextKey(Int object, String previousKey="", String endKey="") global native

There more info in the source code, even an example on how to use it?

 

EDIT

some lite reading for you

https://github.com/SilverIce/JContainers/wiki

Edited by PeterMartyr
added JC wiki
Link to comment
Share on other sites

13 hours ago, PeterMartyr said:

Create a while loop, but instead of using indices, use it like an list iterator:

String function nextKey(Int object, String previousKey="", String endKey="") global native

There more info in the source code, even an example on how to use it?

 

EDIT

some lite reading for you

https://github.com/SilverIce/JContainers/wiki

Already read. Thanks.

 

Also recommend:  

 

Edited by Good0Provider
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...