ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
  • Encoding
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
Checks the validity of a JSON string.
Example
// Check if the JSON string is valid
IF JSONValid(sJSON) THEN
// Yes => Initialize JSON variable
oJSON is JSON = StringToJSON(sJSON)
...
END
Syntax
<Result> = JSONValid(<JSON string>)
<Result>: Boolean
  • True if the JSON string is valid,
  • False otherwise. If an error occurs, use ErrorInfo for more details on the error.
<JSON string>: Character string
String containing the JSON data (7-bit ASCII + JSON or UTF-8 encoding).
Remarks

Encoding

The encoding used corresponds to the JSON standard:
  • 7-bit ASCII encoding for the first 128 characters, i.e., unaccented characters
  • JSON encoding for the other characters: "\u" followed by the character code in 4-byte hexadecimal format. Example: for the "é" character (ASCII code 233, hexadecimal code E9), the encoding corresponds to "\u00E9".
Component: wd290vm.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/20/2023

Send a report | Local help