Sample code for 30+ languages & platforms
AutoIt

Create JSON Array of Strings

See more JSON Examples

Demonstrates how to create a JSON array of strings.

Chilkat AutoIt Downloads

AutoIt
;  The goal of this example is to produce this:

;  [
;    "tag1",
;    "tag2",
;    "tag3"
;  ]

$oJarr = ObjCreate("Chilkat.JsonArray")
$oJarr.AddStringAt(-1,"tag1")
$oJarr.AddStringAt(-1,"tag2")
$oJarr.AddStringAt(-1,"tag3")

$oJarr.EmitCompact = False
ConsoleWrite($oJarr.Emit() & @CRLF)