InsertJSONMap()
Syntax
InsertJSONMap(JSONValue, Map())Description
Insert the specified Map() into the given JSON value. The JSON value will be changed to type #PB_JSON_Object.
Parameters
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.
Return value
None.
Example
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
See Also
InsertJSONArray(), InsertJSONList(), InsertJSONStructure(), ExtractJSONArray(), ExtractJSONList(), ExtractJSONMap(), ExtractJSONStructure(),
Supported OS
All