Get value in field from JSON object.
UNIVAL %JSON_ObjectGetValue( INT in handle, TEXT in field )
Value of type BOOL, INT, REAL or TEXT, or invalid value.
Function get value in field from JSON object.
Exception is thrown if item at index is not value, handle to JSON object is invalid or field does not exists.
INT _obj _obj := %JSON_ObjectFromString('{"Name":"John"}') TEXT _txt _txt := %JSON_ObjectGetValue(_obj, "Name") %JSON_FreeObjectHandle(_obj)
Related pages:
JSON format manipulation functionsFunction arguments - types
Pridať komentár
Pridať komentár