InsertJSONList()

语法

InsertJSONList(JSONValue, List())
概要
Insert the specified List() into the given JSON value. The JSON value will be changed to type #PB_JSON_Array.

参数

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.

返回值

无.

示例

  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

参阅

InsertJSONArray(), InsertJSONMap(), InsertJSONStructure(), ExtractJSONArray(), ExtractJSONList(), ExtractJSONMap(), ExtractJSONStructure(),

已支持操作系统

所有

<- InsertJSONArray() - Json Index - InsertJSONMap() ->