Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 2: for JSONGenerator objects – PB Docs 2019 – PowerBuilder Library

Syntax 2: for JSONGenerator objects – PB Docs 2019

Syntax 2: for JSONGenerator objects

Description

Imports a JsonObjectItem item from a JSON file.

Applies to

JSONGenerator objects

Syntax

Argument

Description

objectname

The name of the JSONGenerator object in which you want
to import a JSON file

ParentItemHandle

A long whose value is the handle of the parent item of
JsonArrayItem or JsonObjectItem type

ParentItemPath

A string whose value is the path of the parent item of
JsonArrayItem or JsonObjectItem type

Key

A string whose value is the key of the child item

FileName

A string whose value is the name of a JSON file

Return value

Long. Returns the handle of the new child item if it succeeds and
-1 if an error occurs. If any argument’s value is null, the method
returns null.

Example 1

This code example loads the string from the JSON file into the
array item of the JSONGenerator object:

Example 2

This code example loads the string from the JSON file into the
object item of the JSONGenerator object:

Example 3

This code example loads the string from the JSON file into the
array item of the JSONGenerator object:

Example 4

This code example loads the string from the JSON file into the
object item of the JSONGenerator object:

Example 5

This code example imports the string from the JSON file as the
root item of the JSONGenerator object:

See also

ImportString


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x