Jay Taylor's notes

back to listing index


[web search]
Original source (github.com)
Tags: scala jvm open-source code oss spray github.com
Clipped on: 2014-02-21


spray-json is a lightweight, clean and efficient JSON implementation in Scala.

It sports the following features:

  • A simple immutable model of the JSON language elements
  • An efficient JSON PEG parser (implemented with parboiled)
  • Choice of either compact or pretty JSON-to-string printing
  • Type-class based (de)serialization of custom objects (no reflection, no intrusion)

spray-json allows you to convert between

  • String JSON documents
  • JSON Abstract Syntax Trees (ASTs) with base type JsValue
  • instances of arbitrary Scala types

as depicted in this diagram:

Image (Asset 1/1) alt=