int

The scalar parsed as an Int.

Reads the wire literal, not the JSON type, so a quoted "30" also returns 30. This matches JsonPrimitive.int in kotlinx.serialization.

See also

Throws

if this value is not a scalar.

if the literal is not an integer, or does not fit in an Int.