ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
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.
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. This is a UTF-8 string.
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: wd300vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/11/2024

Send a report | Local help