Thank you eurojam , I want to create json string like json that I showed in my first post. I know this link but I dont have json format yet ! I want create it first and after that I can use your link
will be something like (not tested, only written down...):
B4X:
Dim jsonmap As Map
Dim dataList As List
Dim cols As Map
jsonmap.Initialize
dataList.Initialize
Dim maxi = 5
For i = 0 To maxi
cols.Initialize
cols.Put("name", "N"&i)
cols.Put("id", i)
cols.Put("family", "CC")
dataList.Add(cols)
Next
jsonmap.put("data", dataList)
jsonmap.put("count", maxi)
jsonmap.Put("message", "OK")
Dim parser As JSONGenerator
parser.Initialize(jsonmap)
Log(parser.ToString)