Represents JSON array.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class JsonStructureFacade
Members list
Value members
Abstract methods
Concatenates JSON array.
Concatenates JSON array.
Attributes
- Returns
-
new JSON array
Prepends value.
Prepends value.
Attributes
- Returns
-
new JSON array
Gets value.
Gets value.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds
Removes value at given index.
Removes value at given index.
Value parameters
- index
-
array index
Attributes
- Returns
-
new JSON array
- Throws
-
JsonArrayError
if index is out of bounds
- Note
-
Subsequent values to index are shifted left.
Updates value at given index.
Updates value at given index.
Value parameters
- index
-
array index
- value
-
JSON value
Attributes
- Returns
-
new JSON array
- Throws
-
JsonArrayError
if index is out of bounds
Concrete methods
Gets value as JsonArray
.
Gets value as JsonArray
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value is not an array
Gets value as BigDecimal
.
Gets value as BigDecimal
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
BigDecimal
Gets value as BigInt
.
Gets value as BigInt
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
BigInt
Gets value as Boolean
.
Gets value as Boolean
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
Boolean
Gets value as Double
.
Gets value as Double
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
Double
Gets value as Float
.
Gets value as Float
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
Float
Gets value as Int
.
Gets value as Int
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
Int
Gets value as Long
.
Gets value as Long
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
Long
Gets value as JsonObject
.
Gets value as JsonObject
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value is not an object
Gets value as String
.
Gets value as String
.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as
String
Tests for null.
Tests for null.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds
Reads value.
Reads value.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as type
T
Optionally reads value.
Optionally reads value.
Value parameters
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as type
T
- Note
-
The value is not read if it is null.
Reads value or returns default value.
Reads value or returns default value.
Value parameters
- default
-
default value
- index
-
array index
Attributes
- Throws
-
JsonArrayError
if index is out of bounds or if value cannot be read as type
T
- Note
-
The value is not read if it is null.
Inherited methods
Converts value.
Tests for empty.
Tests for non-empty.
Inherited and Abstract methods
Gets size.