GiovanniPolese Well-Known Member Licensed User Longtime User Feb 11, 2023 #1 Hi to all I need to generate a json string with some Lists and Maps, containing objects. For example I have defined two types with: A(a1 as float,a2 as string) and B(b1 as A,b2 as string) and stored some objects of type B in a List L1. The question is: which is the best way to build the Json string? Must I build "myself" the string with loops , adding brackets etc.? In this case there is no need of using JSonParser, or am I missing something? (Maybe the parser is intended to be mostly used to "decode" a Json string, as I see in all threads in this forum..) Thanks is advance
Hi to all I need to generate a json string with some Lists and Maps, containing objects. For example I have defined two types with: A(a1 as float,a2 as string) and B(b1 as A,b2 as string) and stored some objects of type B in a List L1. The question is: which is the best way to build the Json string? Must I build "myself" the string with loops , adding brackets etc.? In this case there is no need of using JSonParser, or am I missing something? (Maybe the parser is intended to be mostly used to "decode" a Json string, as I see in all threads in this forum..) Thanks is advance
Solution aeric Feb 11, 2023 creat json string Hi Can anyone help me to create a string similar to: { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -77.034084142948, 38.909671288923 ] }, "properties": { "phoneFormatted": "(202) 234-7336"... www.b4x.com
creat json string Hi Can anyone help me to create a string similar to: { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -77.034084142948, 38.909671288923 ] }, "properties": { "phoneFormatted": "(202) 234-7336"... www.b4x.com
aeric Expert Licensed User Longtime User Feb 11, 2023 #2 creat json string Hi Can anyone help me to create a string similar to: { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -77.034084142948, 38.909671288923 ] }, "properties": { "phoneFormatted": "(202) 234-7336"... www.b4x.com Upvote 2 Solution
creat json string Hi Can anyone help me to create a string similar to: { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -77.034084142948, 38.909671288923 ] }, "properties": { "phoneFormatted": "(202) 234-7336"... www.b4x.com