The Play Framework for Scala contains its own JSON manipulation library, which provides utilities for parsing and manipulating JSON, as well as serialization from and deserialization to Scala objects.
The Scala Play Framework has a built-in JSON handling library under the package play.api.libs.json
. It consists of:
- data types for representing a JSON document as a a tree structure (JsValue and subtypes)
- a simple DSL for describing paths within a JSON document (JsPath)
- a validation monad (JsResult and subtypes)
- a DSL for describing serialization and deserialization
- combinators for describing JSON manipulation
- macros that provide syntactic sugar for the common case of serialization of case classes.
A related project call JsZipper augments this library with additional functionality for manipulating JSON in functional ways.