Get text representation of JSON object.
TEXT %JSON_ObjectToString( INT in handle, BOOL in pretty )
None
Function get text representation of JSON object.
Exception is thrown if handle to JSON object is invalid.
INT _obj _obj := %JSON_CreateObject() %JSON_ObjectSetValue(_obj, "Name", "John Smith") TEXT _txt _txt := %JSON_ObjectToString(_obj) %JSON_FreeObjectHandle(_obj)
Related pages:
JSON format manipulation functionsFunction arguments - types
Pridať komentár
Pridať komentár