This project has moved. For the latest updates, please go here.

Method : of_parse

Signature

lnv_json.of_parse( as_json )

Where

Name Type Description
lnv_json n_cst_json An instance of n_cst_json class
as_json string The JSON string to be parsed

Return

Type Value Description
long 1 Ok
-1 An error occurs

Usages

1. Parse a specified JSON string into repository
n_cst_json lnv_json
integer li_rc
...
lnv_json.of_clear()
li_rc = lnv_json.of_parse( '{"PowerBuilder":{"Version":"12","SubVersion":"5"}' )
if li_rc = -1 then return -1
...

2. Append an additionnal JSON string into repository
...
li_rc = lnv_json.of_parse( '{"Printer":{"Constructor":"XXX","Model":"YYY"}' )
if li_rc = -1 then return -1
...

Last edited Jul 2, 2014 at 10:46 PM by domangep, version 2

Comments

No comments yet.