Add missing json null writer for writeJson
This commit is contained in:
parent
2bc9aa8f06
commit
dfa14ca2a1
@ -212,6 +212,8 @@ fun OutputStream.writeJson(element: JsonElement) {
|
||||
} else {
|
||||
write(TYPE_NULL)
|
||||
}
|
||||
} else if (element is JsonNull) {
|
||||
write(TYPE_NULL)
|
||||
} else {
|
||||
throw IllegalArgumentException("Unknown element type: ${element::class.qualifiedName}")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user