JsonNumber

object JsonNumber

Provides JSON number factory.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: String): JsonNumber

Creates JSON number with value.

Creates JSON number with value.

Throws
NumberFormatException

if value is invalid numeric representation

def apply(value: Int): JsonNumber

Creates JSON number with value.

Creates JSON number with value.

def apply(value: Long): JsonNumber

Creates JSON number with value.

Creates JSON number with value.

def apply(value: Double): JsonNumber

Creates JSON number with value.

Creates JSON number with value.

def apply(value: BigInt): JsonNumber

Creates JSON number with value.

Creates JSON number with value.

def apply(value: BigDecimal): JsonNumber

Creates JSON number with value.

Creates JSON number with value.

def unapply(json: JsonNumber): Option[BigDecimal]

Destructures JSON number to its value.

Destructures JSON number to its value.