GetLongchar( ) method (JsonObject)
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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
|
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.
property-name is case-sensitive.
- 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:
-
property-name is the empty string (""), or is the Unknown value
(
?) - code-page is not supported by OpenEdge
- The property does not exist
- The property value is not a JSON string