# WPARSEJSON

Updated: 9/28/2020, 10:32:47 PM
Created: 9/28/2020, 10:32:47 PM
Last Updated By: Peter Schellenbach
Read Time: 1 minute(s)

Note: This function has been depreciated and it is recommend you use WOBJ instead.

The WPARSEJSON is a simple JSON parsing subroutine.  It has been been replaced with WOBJ.

# WPARSEJSON Syntax

CALL WPARSEJSON(JSON,FIELD,VALUE,ERR)
1

# Syntax Elements

Parameter Description
JSON This is the JSON string.
FIELD The field name you wish to get.
VALUE The returned value
ERR Any returned errors

# WPARSEJSON Example

JSON=\{ "field1":"value1","field2":"value2" }\
CALL WPARSEJSON(JSON,"field1",VALUE,RERR)
* VALUE will equal "value1"
1
2
3

# WPARSEJSON Notes

This is a very simple parser.  It cannot handle nested objects or arrays.  It is better to use WOBJ to parse JSON.