Drift Engine Documentation
Toggle table of contents
1.0.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Drift Engine Documentation
core
/
dev.gmitch215.drift.json
Package-level
declarations
Types
Functions
Types
Canonical
Json
Link copied to clipboard
object
CanonicalJson
Json
Array
Link copied to clipboard
data
class
JsonArray
(
val
items
:
List
<
JsonValue
>
)
:
JsonValue
Json
Bool
Link copied to clipboard
data
class
JsonBool
(
val
value
:
Boolean
)
:
JsonValue
Json
Exception
Link copied to clipboard
class
JsonException
(
message
:
String
)
:
Exception
Json
Int
Link copied to clipboard
data
class
JsonInt
(
val
value
:
Long
)
:
JsonValue
Json
Null
Link copied to clipboard
data
object
JsonNull
:
JsonValue
Json
Object
Link copied to clipboard
data
class
JsonObject
(
val
fields
:
Map
<
String
,
JsonValue
>
)
:
JsonValue
Json
String
Link copied to clipboard
data
class
JsonString
(
val
value
:
String
)
:
JsonValue
Json
Value
Link copied to clipboard
sealed
interface
JsonValue
Functions
array
Link copied to clipboard
fun
JsonValue
.
array
(
)
:
List
<
JsonValue
>
json
Or
Null
Link copied to clipboard
fun
jsonOrNull
(
value
:
String
?
)
:
JsonValue
long
Link copied to clipboard
fun
JsonValue
.
long
(
)
:
Long
obj
Link copied to clipboard
fun
obj
(
vararg
fields
:
Pair
<
String
,
JsonValue
>
)
:
JsonObject
obj
Link copied to clipboard
fun
JsonValue
.
obj
(
)
:
JsonObject
require
Link copied to clipboard
fun
JsonObject
.
require
(
key
:
String
)
:
JsonValue
string
Link copied to clipboard
fun
JsonValue
.
string
(
)
:
String