Gets a value in a field from the JSON object.
UNIVAL %JSON_ObjectGetValue( INT in handle, TEXT in field )
Value of type BOOL, INT, REAL or TEXT, or invalid value.
Function gets a value in a field from the 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
0 komentárov