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
Personne is JSON
Personne.Nom = "DUPONT"
Personne.Prenom = "Michel"
// Affiche: { "Nom":"DUPONT", "Prenom":"Michel" }
Trace(Personne.VersChaîne())
Syntax
<Result> = <JSON variable>.ToString([<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: wd290vm.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/04/2024

Send a report | Local help