Android Question Creating Json string

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
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

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…