PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
VariantToJSON (Function)
In french: VariantVersJSON
Converts the content of a Variant variable to JSON.
Versions 20 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad 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 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 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 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.
<Variant>: Variant variable
Name of the Variant variable to be converted to JSON.
<Options>: Integer constant
Versions 22 and later
JSON formatting options:
psdFormattingGenerates a JSON string with carriage returns and indentation.
Versions 24 and later
psdMinified
New in version 24
psdMinified
psdMinified
Generates a JSON string without unnecessary spaces (carriage returns, spaces, etc.).

WEBDEV - Browser codeAndroidAndroid Widget This parameter is not available.
New in version 22
JSON formatting options:
psdFormattingGenerates a JSON string with carriage returns and indentation.
Versions 24 and later
psdMinified
New in version 24
psdMinified
psdMinified
Generates a JSON string without unnecessary spaces (carriage returns, spaces, etc.).

WEBDEV - Browser codeAndroidAndroid Widget This parameter is not available.
JSON formatting options:
psdFormattingGenerates a JSON string with carriage returns and indentation.
Versions 24 and later
psdMinified
New in version 24
psdMinified
psdMinified
Generates a JSON string without unnecessary spaces (carriage returns, spaces, etc.).

WEBDEV - Browser codeAndroidAndroid Widget This parameter is not available.
Business / UI classification: Neutral code
Component: wd270vm.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment