JsonNull

object JsonNull : JsonPrimitive

Class representing JSON null value

Functions

toString
Link copied to clipboard
open override fun toString(): String

Properties

content
Link copied to clipboard
open override val content: String

Content of given element without quotes. For JsonNull this methods returns null

isString
Link copied to clipboard
open override val isString: Boolean

Indicates whether the primitive was explicitly constructed from String and whether it should be serialized as one. E.g. JsonPrimitive("42") is represented by a string, while JsonPrimitive(42) is not. These primitives will be serialized as 42 and "42" respectively.