RemoveJSONMember()

语法

RemoveJSONMember(JSONValue, Key$)
概要
Remove the memver with the specified key from a JSON value of type #PB_JSON_Object.

参数

JSONValue The JSON value. The value must be of type #PB_JSON_Object.
Key$ The key of the member to remove.

返回值

无.

示例

  Input$ = "{ " + Chr(34) + "x" + Chr(34) + ": 10, " + 
                  Chr(34) + "y" + Chr(34) + ": 20, " + 
                  Chr(34) + "z" + Chr(34) + ": 30 }"
  
  ParseJSON(0, Input$)
  RemoveJSONMember(JSONValue(0), "x")
  Debug ComposeJSON(0, #PB_JSON_PrettyPrint)

参阅

SetJSONObject(), AddJSONMember(), ClearJSONMembers(), GetJSONMember(), ExamineJSONMembers(), JSONObjectSize(), JSONType()

已支持操作系统

所有

<- RemoveJSONElement() - Json Index - ResizeJSONElements() ->