Represents JSON object.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class JsonStructureFacade
Members list
Value members
Abstract methods
Concatenates JSON object.
Concatenates JSON object.
Attributes
- Returns
-
new JSON object
Gets value.
Gets value.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.util.NoSuchElementException
if key does not exist
Optionally gets value.
Optionally gets value.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.util.NoSuchElementException
if key does not exist
Gets object keys.
Gets object keys.
Attributes
Removes field.
Removes field.
Value parameters
- key
-
object key
Attributes
- Returns
-
new JSON object
Adds or updates field.
Adds or updates field.
Value parameters
- key
-
object key
- value
-
new value
Attributes
- Returns
-
new JSON object
Concrete methods
Gets value as JsonArray
.
Gets value as JsonArray
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonArray
java.util.NoSuchElementExceptionif key does not exist
Gets value as BigDecimal
.
Gets value as BigDecimal
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonNumber
java.util.NoSuchElementExceptionif key does not exist
Gets value as BigInt
.
Gets value as BigInt
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ArithmeticException
if not represented exactly
java.lang.ClassCastExceptionif not JsonNumber
Gets value as Boolean
.
Gets value as Boolean
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonBoolean
java.util.NoSuchElementExceptionif key does not exist
Gets value as Double
.
Gets value as Double
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonNumber
java.util.NoSuchElementExceptionif key does not exist
Gets value as Float
.
Gets value as Float
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonNumber
java.util.NoSuchElementExceptionif key does not exist
Gets value as Int
.
Gets value as Int
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ArithmeticException
if not represented exactly
java.lang.ClassCastExceptionif not JsonNumber
java.util.NoSuchElementExceptionif key does not exist
Gets value as Long
.
Gets value as Long
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ArithmeticException
if not represented exactly
java.lang.ClassCastExceptionif not JsonNumber
java.util.NoSuchElementExceptionif key does not exist
Gets value as JsonObject
.
Gets value as JsonObject
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonObject
java.util.NoSuchElementExceptionif key does not exist
Gets value or returns default.
Gets value or returns default.
Value parameters
- default
-
default value
- key
-
object key
Attributes
Gets value as String
.
Gets value as String
.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.ClassCastException
if not JsonString
java.util.NoSuchElementExceptionif key does not exist
Tests for null.
Tests for null.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.util.NoSuchElementException
if key does not exist
Reads value.
Reads value.
Value parameters
- key
-
object key
Attributes
- Throws
-
java.lang.NullPointerException
if value is null
java.util.NoSuchElementExceptionif key does not exists
Optionally reads value.
Optionally reads value.
Value parameters
- key
-
object key
Attributes
- 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
- key
-
object key
Attributes
- Note
-
The value is not read if it is null.
Inherited methods
Converts value.
Tests for empty.
Tests for non-empty.
Gets size.