GetLongchar( ) method (JsonObject)

Gets the JSON string value of the named property as a LONGCHAR.

To get the value of other JSON data types as a string, use the GetJsonText( ) method.

Return type: LONGCHAR

Access: PUBLIC

Applies to: Progress.Json.ObjectModel.JsonObject class

Syntax

GetLongchar( INPUT property-name AS CHARACTER )

GetLongchar( INPUT property-name AS CHARACTER,
             INPUT code-page AS CHARACTER )

If code-page is specified, the returned LONGCHAR is set to that code-page. By default, the returned LONGCHAR is set to -cpinternal.

property-name
A CHARACTER expression that denotes the name of the property value to be retrieved from the JsonObject.
code-page
A CHARACTER expression specifying the code page to which the returned LONGCHAR should be set. If this parameter is the empty string ("") or is the Unknown value (?) it defaults to -cpinternal.

A JsonError is raised if: