InsertJSONList()
Syntax
InsertJSONList(JSONValue, List())Description
Insert the specified List() into the given JSON value. The JSON value will be changed to type #PB_JSON_Array.
Parameters
JSONValue The JSON value. The previous content of the value will be changed to the contant of the List(). List() The list to insert into the JSON value.
Return value
None.
Example
NewList Names.s() AddElement(Names()): Names() = "John" AddElement(Names()): Names() = "Jane" AddElement(Names()): Names() = "Jim" If CreateJSON(0) InsertJSONList(JSONValue(0), Names()) Debug ComposeJSON(0, #PB_JSON_PrettyPrint) EndIf
See Also
InsertJSONArray(), InsertJSONMap(), InsertJSONStructure(), ExtractJSONArray(), ExtractJSONList(), ExtractJSONMap(), ExtractJSONStructure(),
Supported OS
All