PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts the content of a JSON variable to a JSON string.
Versions 27 and later
PHP This function is now available for WEBDEV sites in PHP.
New in version 27
PHP This function is now available for WEBDEV sites in PHP.
PHP This function is now available for WEBDEV sites in PHP.
Example
Person is JSON
Person.LastName = "MOORE"
Person.FirstName = "Vince"
// Displays: { "LastName":"MOORE", "FirstName":"Vince" }
Trace(JSONToString(Person))
Syntax
<Result> = JSONToString(<JSON variable> [, <Options>])
<Result>: Character string
JSON string resulting from the conversion of the JSON variable.
In case of failure, the ErrorOccurred variable is set to True and ErrorInfo returns the details of the error.
<JSON variable>: JSON variable
Name of the JSON variable to be converted to a JSON string.
<Options>: Optional integer
JSON string formatting option:
psdFormattingGenerates a JSON string with carriage returns and indentation.
psdMinifiedGenerates a minified JSON string, without carriage returns or spacing characters.

WEBDEV - Browser code This parameter is not available.
Component: wd270vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment