Sample code for 30+ languages & platforms
Xojo Plugin

Create JSON Array of Strings

See more JSON Examples

Demonstrates how to create a JSON array of strings.

Chilkat Xojo Plugin Downloads

Xojo Plugin
// The goal of this example is to produce this:

// [
//   "tag1",
//   "tag2",
//   "tag3"
// ]

Dim jarr As New Chilkat.JsonArray
Dim success As Boolean
success = jarr.AddStringAt(-1,"tag1")
success = jarr.AddStringAt(-1,"tag2")
success = jarr.AddStringAt(-1,"tag3")

jarr.EmitCompact = False
System.DebugLog(jarr.Emit())