Add missing json null writer for writeJson

This commit is contained in:
DBotThePony 2023-06-19 21:31:14 +07:00
parent 2bc9aa8f06
commit dfa14ca2a1
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -212,6 +212,8 @@ fun OutputStream.writeJson(element: JsonElement) {
} else { } else {
write(TYPE_NULL) write(TYPE_NULL)
} }
} else if (element is JsonNull) {
write(TYPE_NULL)
} else { } else {
throw IllegalArgumentException("Unknown element type: ${element::class.qualifiedName}") throw IllegalArgumentException("Unknown element type: ${element::class.qualifiedName}")
} }