Method : of_get_object

Signature

lnv_json.of_get_object( as_object, astr_entries[] )

Where

Name Type Description
lnv_json n_cst_json an instance of n_cst_json class
as_object string The name of the JSON object to get its content
astr_entries[] s_json_attrib The sjsonattrib arrays that will hold the result (by ref)

Return

Type Value Description
long >0 The number of pairs found for the specified JSON object, or
-1 An error occurs

Usages

Getting all pairs of a specified JSON object and handle them
n_cst_json lnv_json
s_json_attrib	lstr_pairs[]
long	ll_index, ll_limit
...
ll_limit = lnv_json.of_get_object( "PowerBuilder", lstr_pairs )
for ll_index = 1 to ll_limit
	if lstr_pairs[ll_index].is_pair_name = "MinorVersion" then
		...
	endif
...
next

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

Comments

No comments yet.