changes.mady.by.user D2000 Dev Team
Uložené nov 25, 2019
changes.mady.by.user D2000 Doc Team
Uložené feb 26, 2022
Create Creates a new empty JSON array.
INT %JSON_CreateArray()
None
Handler to JSON array, must be released by %JSON_FreeArrayHandle.
Function create creates a new empty JSON array. Array is indexed from 1.
INT _arr _arr := %JSON_CreateArray() BOOL _ret _ret := %JSON_ArrayAppendValue(_arr, 123) _ret := %JSON_ArrayAppendValue(_arr, 3.14) TEXT _txt _txt := %JSON_ArrayToString(_arr, @TRUE) ;_txt = "[123,3.14]"
JSON format manipulation functionsFunction arguments - types