# WPARSEJSON
Updated: 2/24/2021, 3:51:59 PM
Created: 2/24/2021, 3:51:59 PM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)
WPARSEJSON is a simple jSON parsing subroutine. It has been been replaced by 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 |
# Examople
JSON=\{ "field1":"value1","field2":"value2" }\
CALL WPARSEJSON(JSON,"field1",VALUE,RERR)
* VALUE will equal "value1"
1
2
3
2
3
# Notes
This is a very simple parser. It cannot handle nested objects or arrays. It is recommended to use WOBJ to parse jSON.