YsonNumber

data class YsonNumber(val value: Double) : YsonValue

YsonNumber wraps a JSON number primitive.

Kotlin uses Double to mirror the JS reference implementation, where untyped numbers are always parsed as 64-bit floats. Typed integers use YsonInt or YsonLong.

Constructors

Link copied to clipboard
constructor(value: Double)

Properties

Link copied to clipboard