InsertJSONMap()

语法

InsertJSONMap(JSONValue, Map())
概要
Insert the specified Map() into the given JSON value. The JSON value will be changed to type #PB_JSON_Object.

参数

JSONValue The JSON value. The previous content of the value will be changed to the contant of the Map().
Map() The map to insert into the JSON value.

返回值

无.

示例

  NewMap Colors()
  Colors("red")   = $0000FF
  Colors("green") = $00FF00
  Colors("blue")  = $FF0000
  
  If CreateJSON(0)
    InsertJSONMap(JSONValue(0), Colors())
    Debug ComposeJSON(0, #PB_JSON_PrettyPrint)
  EndIf

参阅

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

已支持操作系统

所有

<- InsertJSONList() - Json Index - InsertJSONStructure() ->