JNumber

final case
class JNumber(value: String) extends JValue

Represents a JSON number value.

If you are passing in a NaN or Infinity as a scala.Double, unsafe.JNumber will contain "NaN" or "Infinity" as a String which means it will cause issues for users when they use the value at runtime. It may be preferable to check values yourself when constructing unsafe.JValue to prevent this. This isn't checked by default for performance reasons.

Companion
object
class JValue
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any

Value members

Constructors

def this(value: Double)

Concrete methods

override
def toJsAny: Any
Definition Classes
override
Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product