AddNumber( ) method (JsonObject)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Creates a property with a given name and JSON number value. This method is useful in situations where none of the ABL numeric data types can be used to hold a JSON numeric value. For example, 10E+100.
On successful execution, this method returns TRUE.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.JsonObject class
Syntax
|
- property-name
- A CHARACTER expression representing the new property to be created.
This name can be any string that can be represented as a valid Unicode string.
If property-name is the empty string (
"") , is the Unknown value (?), or if the property already exists, a JsonError is raised.property-name is case-sensitive.
- value
- A CHARACTER expression representing a numeric value to which the
new element is to be set. The value must match the pattern for valid JSON
number values. These may be integers ([-]dddd), decimals ([-]ddd.ddd),
or scientific notation ([-]ddd[.ddd]e[+|-]ddd). If value is
the Unknown value (
?), the element is set to the a JSON null value. If the value is not a valid JSON number value or is an empty string (""), a JsonError is raised.