Sample code for 30+ languages & platforms
Visual FoxPro

Create JSON Array of Strings

See more JSON Examples

Demonstrates how to create a JSON array of strings.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL loJarr

* The goal of this example is to produce this:

* [
*   "tag1",
*   "tag2",
*   "tag3"
* ]

loJarr = CreateObject('Chilkat.JsonArray')
loJarr.AddStringAt(-1,"tag1")
loJarr.AddStringAt(-1,"tag2")
loJarr.AddStringAt(-1,"tag3")

loJarr.EmitCompact = 0
? loJarr.Emit()

RELEASE loJarr