SetJSONString()
语法
SetJSONString(JSONValue, String$)概要
Change the type of the JSON value to #PB_JSON_String and store the given string.
参数
JSONValue The JSON value. String$ The string to store.
返回值
无.
示例
If CreateJSON(0) ArrayValue = SetJSONArray(JSONValue(0)) SetJSONString(AddJSONElement(ArrayValue), "with escaped new" + Chr(13) + Chr(10) + "line") SetJSONString(AddJSONElement(ArrayValue), "with escaped \ backslash") Debug ComposeJSON(0) EndIf
参阅
GetJSONString(), SetJSONArray(), SetJSONBoolean(), SetJSONDouble(), SetJSONFloat(), SetJSONInteger(), SetJSONNull(), SetJSONObject(), SetJSONQuad()
已支持操作系统
所有