Functions and Directives

Function JsonDecode() Foundation

Converts JSON text to a character string.

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

A character string.


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 current SET 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.


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.