Javascript specification for numbers specify a Double
, so this is the default export method to Javascript
NumberFormatException
- If the value is not a valid JSON Number
Converts a JValue to a Javascript object/value that can be used within Javascript
Converts a JValue to a unsafe.JValue.
Converts a JValue to a unsafe.JValue. Note that when converting JObject, this can produce unsafe.JObject of unknown ordering, since ordering on a scala.collection.Map isn't defined. Duplicate keys will also be removed in an undefined manner.
Represents a JSON number value. If you are passing in a NaN or Infinity as a Double, JNumber will return a JNull.
NumberFormatException
- If the value is not a valid JSON Number