Dim checkedItems As List
checkedItems.Initialize
For i = 0 To 100
If chk.Checked Then
checkedItems.Add(i)
End If
Next
Log("Items: " & checkedItems)
'convert checkedItems to JSON
JSON format is a a format similar to XML but usually it is shorter and easier to parse. Many web services now work with JSON. JSON official site: JSON Using the new JSON library, you can parse and generate JSON strings easily. As an example we will parse a the following JSON string: {"menu"...
www.b4x.com
The second half of the tutorial deals with your need...
Generating JSON strings is done in a similar way. We create a Map or a List that holds the values and then using JSONGenerator we convert it to a JSON string: