JsonPrimitive
Class representing JSON primitive value. JSON primitives include numbers, strings, booleans and special null value JsonNull.
Functions
Properties
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.
Inheritors
Extensions
Returns content of current element as boolean
Returns content of current element as boolean or null
if current element is not a valid representation of boolean
Content of the given element without quotes or null
if current element is JsonNull
Returns content of current element as double
Returns content of current element as double or null
if current element is not a valid representation of number
Returns content of current element as float
Returns content of current element as float or null
if current element is not a valid representation of number
Returns content of the current element as int
Returns content of the current element as int or null
if current element is not a valid representation of number
Returns content of current element as long
Returns content of current element as long or null
if current element is not a valid representation of number