GetJsonObject( ) method (JsonObject)
- Last Updated: November 25, 2024
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Gets the JsonObject value of the named property.
Return type: Progress.Json.ObjectModel.JsonObject class
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.JsonObject class
Syntax
|
- property-name
- A CHARACTER expression that indicates the name the property value to
be retrieved from the
JsonObject.
A JsonError is raised if:
- property-name is the empty string
(
""), or is the Unknown value (?) - The property does not exist
- The property value is not a
JsonObject
The following example demonstrates the functionality of the GetJsonObject() method.
The following is a sample JsonObject:
|
The following example code uses the GetJsonObject() method to extract the Order JSON data:
|
The following is the resulting myLongchar value:
|