# WPARSEJSON

Updated: 7/8/2020, 5:59:18 PM
Created: 7/8/2020, 5:59:18 PM
Last Updated By: Ryan Medina
Read Time: 1 minute(s)

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

# Command 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

# Example

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

# Notes

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