org.allenai.common.json

RichJsObject

Related Doc: package json

implicit final class RichJsObject extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichJsObject
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichJsObject(jsObj: JsObject)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. def apply[A](key: String)(implicit arg0: JsonReader[A]): A

    Extract a value of type A by the given key

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def get[A](key: String)(implicit arg0: JsonReader[A]): Option[A]

    Extract a value of type A by the given key

  7. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  9. val jsObj: JsObject

  10. def pack[A](newField: (String, A))(implicit arg0: JsonWriter[A]): JsObject

    Create a new JsObject with an additional field

  11. def pack(newField: (String, JsValue)): JsObject

    Create a new JsObject with an additional field

  12. def toString(): String

    Definition Classes
    Any
  13. def unpackAs[T](implicit unpackers: Seq[PackedJsonFormat[_ <: T]]): T

    Unpack json using the implicitly provided PackedJsonFormats

    Unpack json using the implicitly provided PackedJsonFormats

    Exceptions thrown

    spray.json.DeserializationException

  14. def unpackOptWith[T](packedFormats: PackedJsonFormat[_ <: T]*): Option[T]

    Optionally unpack json using the provided PackedJsonFormats

    Optionally unpack json using the provided PackedJsonFormats

    packedFormats

  15. def unpackWith[T](packedFormats: PackedJsonFormat[_ <: T]*): T

    Optionally unpack json using the provided PackedJsonFormats

    Optionally unpack json using the provided PackedJsonFormats

    packedFormats
    Exceptions thrown

    spray.json.DeserializationException

Inherited from AnyVal

Inherited from Any

Ungrouped