SetJSONObject()
Syntax
Ergebnis = SetJSONObject(JSONWert)Beschreibung
Ändert den Typ des JSON-Wertes auf #PB_JSON_Object. Das Objekt wird dann keine Elemente enthalten (auch wenn der Wert zuvor Objekt-Elemente enthielt).
Parameter
JSONWert Der JSON-Wert.
Rückgabewert
Gibt die Objekt-Nummer zurück, andernfalls Null.
Beispiel
If CreateJSON(0)
ObjectValue = SetJSONObject(JSONValue(0))
SetJSONInteger(AddJSONMember(ObjectValue, "x"), 10)
SetJSONInteger(AddJSONMember(ObjectValue, "y"), 20)
SetJSONInteger(AddJSONMember(ObjectValue, "z"), 30)
Debug ComposeJSON(0, #PB_JSON_PrettyPrint)
EndIf
Siehe auch
AddJSONMember(), RemoveJSONMember(), ClearJSONMembers(), GetJSONMember(), ExamineJSONMembers(), JSONObjectSize(), JSONType()
Unterstützte OS
Alle