org.allenai.common

json

package json

Utilities for making it easier to work with spray-json for common use cases.

Usage: (format: OFF)

import spray.json._
import org.allenai.common.json._

val json: JsObject = ...
val packed = json.pack("foo" -> 5) // creates a new JsObject with the added field
packed[Int]("foo") // returns 5
packed.get[Int]("foo") // returns Some(5)

(format: ON)

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

Type Members

  1. implicit final class RichJsObject extends AnyVal

  2. implicit class RichJsonFormat[T] extends AnyRef

Inherited from AnyRef

Inherited from Any

Ungrouped