Function JsonDecode() Foundation

Converts JSON text to a character string.

Syntax
JsonDecode( <cJsonString> ) -> cString
Parameters
<cJsonString>
<cJsonString> is a character string with JSON text encoded in UTF-8.
Return

A character string.

Description

The function JsonDecode() converts JavaScript Object Notation (JSON) text into a Xbase++ character string. The returned string is ANSI or OEM encoded depending on the currentSET CHARSET setting. The character string passed in <cJsonString> must contain JSON text in the format described for the function JsonEncode().

JsonDecode() expects <cJsonString> to be in UTF-8 encoding. Passing an UTF-16 or UTF-32 encoded string to JsonDecode()yields a runtime error.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.