Get field name at given index from JSON object.
TEXT %JSON_ObjectGetFieldName( INT in handle, INT in index )
Field name at given index in JSON object.
Function get field name at given index in JSON object.
Exception is thrown if handle to JSON object is invalid or index is out of range.
INT _obj _obj := %JSON_ObjectFromString('{"Text":"Lorem Ipsum"}') TEXT _txt _txt := %JSON_ObjectGetFieldName(_obj, 1) %JSON_FreeObjectHandle(_obj)
Related pages:
JSON format manipulation functionsFunction arguments - types
0 komentárov