changes.mady.by.user D2000 Dev Team
Uložené nov 25, 2019
changes.mady.by.user D2000 Doc Team
Uložené mar 02, 2022
Add Adds a name-object pair into the JSON object
%JSON_ObjectSetObject( INT in handle, TEXT in field, INT in object )
None
Function adds a name-object pair into the JSON object. If the field already exists, value is updated.
Exception is thrown if handle to parent JSON object or added JSON object is invalid or field does not exists.
INT _obj _obj := %JSON_CreateObject() INT _arr _arr := %JSON_CreateArray() %JSON_ArrayAppendValue(_arr, 3.1416) %JSON_ObjectSetArray(_obj, "Constants", _arr) %JSON_FreeObjectHandle(_obj) %JSON_FreeArrayHandle(_arr)
JSON format manipulation functionsFunction arguments - types