Creates a new empty JSON object.
INT %JSON_CreateObject()
None
Handler to JSON object, must be released by %JSON_FreeObjectHandle.
Function creates a new empty JSON object.
INT _obj _obj := %JSON_CreateObject() BOOL _ret _ret := %JSON_ObjectSetValue(_obj, "Name", "John") _ret := %JSON_ObjectSetValue(_obj, "Surname", "Smith") TEXT _txt _txt := %JSON_ObjectToString(_obj, @FALSE) %JSON_FreeObjectHandle(_obj)
Related pages:
JSON format manipulation functionsFunction arguments - types
Pridať komentár
Pridať komentár