sjsonnew.shaded.scalajson.ast.unsafe

Type members

Classlikes

object JArray
Companion
class
final case
class JArray(value: Array[JValue]) extends JValue

Represents a JSON Array value

Represents a JSON Array value

Companion
object
sealed abstract
class JBoolean extends JValue

Represents a JSON Boolean value, which can either be a JTrue or a JFalse

Represents a JSON Boolean value, which can either be a JTrue or a JFalse

Companion
object
object JBoolean
Companion
class
case
object JFalse extends JBoolean

Represents a JSON Boolean false value

Represents a JSON Boolean false value

final case
class JField(field: String, value: JValue)
case
object JNull extends JValue

Represents a JSON null value

Represents a JSON null value

object JNumber
Companion
class
final case
class JNumber(value: String) extends JValue

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.

Companion
object
object JObject
Companion
class
final case
class JObject(value: Array[JField]) extends JValue

Represents a JSON Object value. Duplicate keys are allowed and ordering is respected

Represents a JSON Object value. Duplicate keys are allowed and ordering is respected

Companion
object
final case
class JString(value: String) extends JValue

Represents a JSON string value

Represents a JSON string value

case
object JTrue extends JBoolean

Represents a JSON Boolean true value

Represents a JSON Boolean true value

sealed abstract
class JValue extends Serializable with Product

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)

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