PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
VariantToJSON (Function)
In french: VariantVersJSON
Converts the content of a Variant variable to JSON format.
Example
Person is Variant
Person.LastName = "MOORE"
Person.FirstName = "Vince"
 
Trace(VariantToJSON(Person))
 
 
// Displays: { "LastName":"MOORE", "FirstName":"Vince" }
Syntax
<Result> = VariantToJSON(<Variant> [, <Options>])
<Result>: Character string
Result of the conversion to JSON format.
<Variant>: Variant variable
Name of the Variant variable that must be converted to JSON format.
<Options>: Integer constant
Versions 22 and later
Option for JSON formatting:
psdFormattingGenerates a JSON with carriage returns and an indentation.

New in version 22
Option for JSON formatting:
psdFormattingGenerates a JSON with carriage returns and an indentation.

Option for JSON formatting:
psdFormattingGenerates a JSON with carriage returns and an indentation.

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