ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
Help / WLanguage / WLanguage functions / Standard functions / JSON functions
  • Properties specific to jsonReader variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The jsonReader type is used to loop through large JSON documents with optimal performance and low memory usage. You can read the characteristics of this JSON document using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Note: This variable type is only available from version 2025 - Update 3.
Example
JSON_Reader is jsonReader = JSONOpenReader("file.json")
FOR EACH JSON_Reader IN-DEPTH
	...
END
Properties

Properties specific to jsonReader variables

The following properties can be used to handle a JSON document:
Property nameType usedEffect
Name Character string
  • Member name, if the current element is a member of an object.
  • Empty string ("") if the current element is the root or is an array element.
This property is read-only.
DepthIntegerDepth of the current element.
This property is read-only.
JSONSourceCharacter stringJSON source corresponding to the current element.
This property is read-only.
ParentjsonReaderParent element in an in-depth loop.
This property is read-only.
TypeIntegerType of the current element:
  • wlBoolean: Simple JSON boolean value.
  • wlUnicodeString: Simple JSON string.
  • wlInt: Simple JSON integer.
  • wlNull: Simple JSON Null value.
  • wlNumeric: Simple JSON decimal value.
  • wlVariantObject: JSON object.
  • wlVariantArray: JSON array.
  • wlEmpty: Reader not initialized.
This property is read-only.
ValueAll typesValue if the current element is a simple type (other than object or array).
This property is read-only.
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/03/2025

Send a report | Local help