Creates a new empty JSON array.
INT %JSON_CreateArray()
None
Handler to JSON array, must be released by %JSON_FreeArrayHandle.
Function 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]"
Related pages:
JSON format manipulation functionsFunction arguments - types
Pridať komentár
Pridať komentár