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

GetJsonString – PB Docs 2019 – PowerBuilder Library

GetJsonString – PB Docs 2019

GetJsonString

PowerScript function

Description

Gets the JSON string data.

Applies to

JSONGenerator and JSONPackage

Syntax

Argument

Description

objectname

The name of the JSONGenerator or JSONPackage object whose
data you want to obtain.

Return value

String.

Returns the JSON string data if it succeeds and empty string (“”) if
an error occurs.

Example 1

This example gets the JSON string data: The result is
{“object”:{“year”:2017,”date”:”2017-09-21″,”time”:”12:00:00″},”array”:[101,102,103]}.

Example 2

This example gets the JSON string data: The result is
[{“year”:2017,”date”:”2017-09-21″,”time”:”12:00:00″},[101,102,103]].

Example 3

This example packages the data of DataWindow, DataStore and
DataWindowChild object and assigns the value to a string.

See also

GetJsonBlob


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