play.api.libs.json.jackson.PlayJsonModule
See thePlayJsonModule companion object
sealed class PlayJsonModule(parserSettings: JsonParserSettings) extends PlayJsonMapperModule
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
- Graph
-
- Supertypes
-
class PlayJsonMapperModuleclass SimpleModuletrait Serializableclass Moduletrait Versionedclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object PlayJsonModule.type
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- SimpleModule
def addDeserializer[T <: <FromJavaObject>](x$0: Class[T], x$1: JsonDeserializer[_ <: T]): SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
def addKeySerializer[T <: <FromJavaObject>](x$0: Class[_ <: T], x$1: JsonSerializer[T]): SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- Module
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
def setMixInAnnotation(x$0: Class[_ <: <FromJavaObject>], x$1: Class[_ <: <FromJavaObject>]): SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
Attributes
- Inherited from:
- SimpleModule
In this article