PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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.
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Windows Mobile This function is now available for the Windows Mobile applications.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
Windows Mobile This function is now available for the Windows Mobile applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Windows Mobile This function is now available for the Windows Mobile applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
WEBDEV - Browser code This function is now available in browser code.
New in version 22
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
WEBDEV - Browser code This function is now available in browser code.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
WEBDEV - Browser code This function is now available in browser code.
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.

WEBDEV - Browser codeAndroidAndroid Widget Java This parameter is not available.
New in version 22
Option for JSON formatting:
psdFormattingGenerates a JSON with carriage returns and an indentation.

WEBDEV - Browser codeAndroidAndroid Widget Java This parameter is not available.
Option for JSON formatting:
psdFormattingGenerates a JSON with carriage returns and an indentation.

WEBDEV - Browser codeAndroidAndroid Widget Java This parameter is not available.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment