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)
Utilities for making it easier to work with spray-json for common use cases.
Usage: (format: OFF)
(format: ON)