Android Question help with jsongenerator

apty

Active Member
Licensed User
Longtime User
I need help in generating the json string below with jsongenerator. Please assist
B4X:
{
    "get": "Slim",
    "properties": [
        {"name":"Size", "type": "new", "value":"40"},
        {"name":"Height", "type": "object", "value":"hi slim"}
    ]
}
 

DonManfred

Expert
Licensed User
Longtime User
Create a Map
Add the get Property to the Map
Add a List to the Map containing Maps for the inner "properties". Add the List to the Map using the Key "properties"

Create the json.
 
Upvote 0
Top