play.api.libs.json.jackson

Members list

Type members

Classlikes

sealed class PlayJsonMapperModule(jsonConfig: JsonConfig) extends SimpleModule

Attributes

Supertypes
class SimpleModule
trait Serializable
class Module
trait Versioned
class Object
trait Matchable
class Any
Show all
Known subtypes
object PlayJsonModule.type

Deprecated classlikes

sealed class PlayJsonModule(parserSettings: JsonParserSettings) extends PlayJsonMapperModule

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.PlayJsonModule
import play.api.libs.json.JsonParserSettings

val jsonSettings = JsonSettings.settings
val mapper = new ObjectMapper().registerModule(
 new PlayJsonMapperModule(jsonSettings))
val jsValue = mapper.readValue("""{"foo":"bar"}""", classOf[JsValue])

Attributes

Companion
object
Deprecated
true
Supertypes
class SimpleModule
trait Serializable
class Module
trait Versioned
class Object
trait Matchable
class Any
Show all
Known subtypes
object PlayJsonModule.type

Attributes

Companion
class
Deprecated
true
Supertypes
class SimpleModule
trait Serializable
class Module
trait Versioned
class Object
trait Matchable
class Any
Show all
Self type