Package

scala.json.ast

unsafe

Permalink

package unsafe

Visibility
  1. Public
  2. All

Type Members

  1. case class JArray(value: scalajs.js.Array[JValue] = js.Array()) extends JValue with Product with Serializable

    Permalink

    Represents a JSON Array value

  2. sealed abstract class JBoolean extends JValue

    Permalink

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

  3. case class JField(field: String, value: JValue) extends Product with Serializable

    Permalink
  4. case class JNumber(value: String) extends JValue with Product with Serializable

    Permalink

    Represents a JSON number value.

    Represents a JSON number value.

    If you are passing in a NaN or Infinity as a 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.

  5. abstract class JNumberConverter[T] extends AnyRef

    Permalink
  6. case class JObject(value: scalajs.js.Array[JField] = js.Array()) extends JValue with Product with Serializable

    Permalink

    Represents a JSON Object value.

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

  7. case class JString(value: String) extends JValue with Product with Serializable

    Permalink

    Represents a JSON string value

  8. sealed abstract class JValue extends Serializable with Product

    Permalink

    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

  1. object JArray extends Serializable

    Permalink
  2. object JBoolean extends Serializable

    Permalink
  3. object JFalse extends JBoolean with Product with Serializable

    Permalink

    Represents a JSON Boolean false value

  4. object JNull extends JValue with Product with Serializable

    Permalink

    Represents a JSON null value

  5. object JNumber extends Serializable

    Permalink
  6. object JNumberConverter

    Permalink
  7. object JObject extends Serializable

    Permalink
  8. object JTrue extends JBoolean with Product with Serializable

    Permalink

    Represents a JSON Boolean true value

Ungrouped