A apty Active Member Licensed User Longtime User Apr 23, 2018 #1 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"} ] }
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 Apr 23, 2018 #2 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
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.
Erel B4X founder Staff member Licensed User Longtime User Apr 23, 2018 #3 B4X: Dim m As Map = CreateMap("get": "Slim", _ "properties": Array( _ CreateMap("name": "Size", ...), _ CreateMap("name": "Height, ...) _ )) Upvote 0
B4X: Dim m As Map = CreateMap("get": "Slim", _ "properties": Array( _ CreateMap("name": "Size", ...), _ CreateMap("name": "Height, ...) _ ))
A apty Active Member Licensed User Longtime User Apr 23, 2018 #4 Thanks a lot. It works fine Upvote 0