SetNull( ) method (JsonArray)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Sets the element at index to null for JsonArray.
This method is useful in situations where
you know at compile time that are setting an element to the JSON
null value. To use one of the Set( ) overloadings,
you must set a variable to the Unknown value (?) first,
and then call Set( ) with the variable.
Using the Unknown value (?) as a constant in one of the Set( ) overloadings
will cause a compilation error, because the compiler cannot resolve
the overloading to be used.
On successful execution this method returns TRUE.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.JsonArray class
Syntax
|
- index
- An INTEGER value identifying the element to set to null. Indexing into JsonArray is 1-based.
A JsonError is raised
if index is less than 1, is greater than the
length of the JsonArray, or is the Unknown value (?).