RemoveJSONMember()

Syntax

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

Parameters

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

Return value

None.

Example

  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)

See Also

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

Supported OS

All

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