martmists
07/19/2023, 9:20 AMnull
rather than JsonNull
?Casey Brooks
07/20/2023, 7:15 PMJsonObject
and JsonArray
, both require children to be non-null JsonElement
. Similarly, they can’t directly hold onto primitive values. Both null
and primitive values are wrapped in JsonPrimitive
(either JsonLiteral
when a value exists, or JsonNull
if it doesn’t)