OpenEdge.Core.Assertion.AssertJson
- Last Updated: January 15, 2026
- 3 minute read
- OpenEdge
- Version 12.8
- Documentation
|
Method Summary
| Options | Name | Purpose | |
|---|---|---|---|
| HasProperty (JsonObject, character) |
/** Asserts that a Json object has a particularly-named property (of any type).
@param JsonObject The JSON object being checked
@param character The name of the property being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
||
| HasPropertyCount (JsonObject, integer) |
/** Asserts that a JSON object has a specific number of properties
@param JsonObject The JSON object being checked
@param integer The number of properties it must have
@throws AssertionFailedError Error thrown if the JSON object is not valid
@throws AssertionFailedError Error thrown if the property count is negative
@throws AssertionFailedError Error thrown if the number of properties is not equal to the count */
|
||
| IndexIsNull (JsonArray, integer) |
/** Asserts that an array extent value is null
@param JsonArray The JSON object being checked
@param integer The index being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
||
| IndexIsType (JsonArray, integer, JsonDataTypeEnum) |
/** Asserts that a JSON Array has a index of a particular type.
@param JsonArray The JSON object being checked
@param integer The index being checked
@param JsonDataTypeEnum The data type being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
||
| IndexNotNull (JsonArray, integer) |
/** Asserts that an array extent value is null
@param JsonArray The JSON object being checked
@param integer The index being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
||
| PropertyIsNull (JsonObject, character) |
/** Asserts that a the value of a property is null
@param JsonObject The JSON object being checked
@param character The name of the property being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
||
| PropertyIsType (JsonObject, character, JsonDataTypeEnum) |
/** Asserts that a JSON Object has a particularly-named property of a
particular type.
@param JsonObject The JSON object being checked
@param character The name of the property being checked
@param JsonDataTypeEnum The data type being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
||
| PropertyNotNull (JsonObject, character) |
/** Asserts that a the value of a property is not null
@param JsonObject The JSON object being checked
@param character The name of the property being checked
@throws AssertionFailedError Error thrown if the property does not exist */
|
Method Detail
HasProperty (JsonObject, character)
|
||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HasPropertyCount (JsonObject, integer)
|
||||||||||||||||||||||||
IndexIsNull (JsonArray, integer)
|
||||||||||||||||||||||||
IndexIsType (JsonArray, integer, JsonDataTypeEnum)
|
||||||||||||||||||||||||
IndexNotNull (JsonArray, integer)
|
||||||||||||||||||||||||
PropertyIsNull (JsonObject, character)
|
||||||||||||||||||||||||
PropertyIsType (JsonObject, character, JsonDataTypeEnum)
|
||||||||||||||||||||||||
PropertyNotNull (JsonObject, character)
|
||||||||||||||||||||||||