ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / JSON functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts the content of a JSON variable to a JSON string.
Example
Personne is JSON
Personne.Nom = "DUPONT"
Personne.Prenom = "Michel"
// Affiche : { "Nom":"DUPONT", "Prenom":"Michel" }
Trace(JSONToString(Personne))
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.

Component: wd300vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/14/2025

Send a report | Local help