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 / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
VariantToJSON (Function)
In french: VariantVersJSON
Converts the content of a Variant variable to JSON.
Example
Personne is Variant
Personne.Nom = "DUPONT"
Personne.Prenom = "Michel"

Trace(VariantToJSON(Personne))


// Affiche: { "Nom":"DUPONT", "Prenom":"Michel" }
Syntax
<Result> = VariantToJSON(<Variant> [, <Options>])
<Result>: Character string
Result of the conversion to JSON.
<Variant>: Variant variable
Name of the Variant variable to be converted to JSON.
<Options>: Integer constant
JSON formatting options:
psdFormattingGenerates a JSON string with carriage returns and indentation.
psdMinifiedGenerates a JSON string without unnecessary spaces (carriage returns, spaces, etc.).

Business / UI classification: Neutral code
Component: wd300vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help