package jackson
Type Members
- sealed class PlayJsonMapperModule extends SimpleModule
The Play JSON module for Jackson.
The Play JSON module for Jackson.
This can be used if you want to use a custom Jackson ObjectMapper, or more advanced Jackson features when working with JsValue. To use this:
import com.fasterxml.jackson.databind.ObjectMapper import play.api.libs.json.JsValue import play.api.libs.json.jackson.PlayJsonMapperModule import play.api.libs.json.JsonConfig val jsonSettings = JsonConfig.settings val mapper = new ObjectMapper().registerModule( new PlayJsonMapperModule(jsonSettings)) val jsValue = mapper.readValue("""{"foo":"bar"}""", classOf[JsValue])