PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
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
StringToJSON (Function)
In french: ChaîneVersJSON
Converts a JSON string into a JSON variable.
Example
sJZon is ANSI string = [
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"
}
}
}
}
}
]
 
jz is JSON = StringToJSON(sJZon)
Syntax
<Result> = StringToJSON(<JSON string>)
<Result>: JSON variable
JSON variable that contains the result of the conversion.
In case of failure, the ErrorOccurred variable is set to True and ErrorInfo returns the error details.
<JSON string>: Character string (with quotes)
Character string containing the data in JSON format.
Component : wd250vm.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment