Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)
  On 12/25/2024 at 3:48 AM, 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

Expand  

Already read. Thanks.

 

Also recommend:  

 

Edited by Good0Provider
  • Recently Browsing   0 members

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