package unsafe
- Alphabetic
- Public
- All
Type Members
-
final
case class
JArray
(value: Array[JValue] = Array.empty) extends JValue with Product with Serializable
Represents a JSON Array value
-
sealed abstract
class
JBoolean
extends JValue
Represents a JSON Boolean value, which can either be a JTrue or a JFalse
- final case class JField (field: String, value: JValue) extends Product with Serializable
-
final
case class
JNumber
(value: String) extends JValue with Product with Serializable
Represents a JSON number value.
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.
-
final
case class
JObject
(value: Array[JField] = Array.empty) extends JValue with Product with Serializable
Represents a JSON Object value.
Represents a JSON Object value. Duplicate keys are allowed and ordering is respected
-
final
case class
JString
(value: String) extends JValue with Product with Serializable
Represents a JSON string value
-
sealed abstract
class
JValue
extends Serializable with Product
Represents a JSON Value which may be invalid.
Represents a JSON Value which may be invalid. Internally uses mutable collections when its desirable to do so, for performance and other reasons (such as ordering and duplicate keys)
- See also
https://www.ietf.org/rfc/rfc4627.txt
Value Members
- object JArray extends Serializable
- object JBoolean extends Serializable
-
object
JFalse
extends JBoolean with Product with Serializable
Represents a JSON Boolean false value
-
object
JNull
extends JValue with Product with Serializable
Represents a JSON null value
- object JNumber extends Serializable
- object JObject extends Serializable
-
object
JTrue
extends JBoolean with Product with Serializable
Represents a JSON Boolean true value