sealed class PlayJsonModule extends SimpleModule
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 jsonParseSettings = JsonParserSettings() val mapper = new ObjectMapper().registerModule( new PlayJsonModule(jsonParseSettings)) val jsValue = mapper.readValue("""{"foo":"bar"}""", classOf[JsValue])
- Source
- JacksonJson.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- PlayJsonModule
- SimpleModule
- Serializable
- Module
- Versioned
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new PlayJsonModule(parserSettings: JsonParserSettings)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def _checkNotNull(arg0: AnyRef, arg1: String): Unit
- Attributes
- protected[module]
- Definition Classes
- SimpleModule
- def addAbstractTypeMapping[T <: AnyRef](arg0: Class[T], arg1: Class[_ <: T]): SimpleModule
- Definition Classes
- SimpleModule
- def addDeserializer[T <: AnyRef](arg0: Class[T], arg1: JsonDeserializer[_ <: T]): SimpleModule
- Definition Classes
- SimpleModule
- def addKeyDeserializer(arg0: Class[_ <: AnyRef], arg1: KeyDeserializer): SimpleModule
- Definition Classes
- SimpleModule
- def addKeySerializer[T <: AnyRef](arg0: Class[_ <: T], arg1: JsonSerializer[T]): SimpleModule
- Definition Classes
- SimpleModule
- def addSerializer[T <: AnyRef](arg0: Class[_ <: T], arg1: JsonSerializer[T]): SimpleModule
- Definition Classes
- SimpleModule
- def addSerializer(arg0: JsonSerializer[_ <: AnyRef]): SimpleModule
- Definition Classes
- SimpleModule
- def addValueInstantiator(arg0: Class[_ <: AnyRef], arg1: ValueInstantiator): SimpleModule
- Definition Classes
- SimpleModule
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getDependencies(): Iterable[_ <: Module]
- Definition Classes
- Module
- def getModuleName(): String
- Definition Classes
- SimpleModule → Module
- def getTypeId(): AnyRef
- Definition Classes
- SimpleModule → Module
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def registerSubtypes(arg0: Collection[Class[_ <: AnyRef]]): SimpleModule
- Definition Classes
- SimpleModule
- def registerSubtypes(arg0: <repeated...>[NamedType]): SimpleModule
- Definition Classes
- SimpleModule
- Annotations
- @transient()
- def registerSubtypes(arg0: <repeated...>[Class[_ <: AnyRef]]): SimpleModule
- Definition Classes
- SimpleModule
- Annotations
- @transient()
- def setAbstractTypes(arg0: SimpleAbstractTypeResolver): Unit
- Definition Classes
- SimpleModule
- def setDeserializerModifier(arg0: BeanDeserializerModifier): SimpleModule
- Definition Classes
- SimpleModule
- def setDeserializers(arg0: SimpleDeserializers): Unit
- Definition Classes
- SimpleModule
- def setKeyDeserializers(arg0: SimpleKeyDeserializers): Unit
- Definition Classes
- SimpleModule
- def setKeySerializers(arg0: SimpleSerializers): Unit
- Definition Classes
- SimpleModule
- def setMixInAnnotation(arg0: Class[_ <: AnyRef], arg1: Class[_ <: AnyRef]): SimpleModule
- Definition Classes
- SimpleModule
- def setNamingStrategy(arg0: PropertyNamingStrategy): SimpleModule
- Attributes
- protected[module]
- Definition Classes
- SimpleModule
- def setSerializerModifier(arg0: BeanSerializerModifier): SimpleModule
- Definition Classes
- SimpleModule
- def setSerializers(arg0: SimpleSerializers): Unit
- Definition Classes
- SimpleModule
- def setValueInstantiators(arg0: SimpleValueInstantiators): Unit
- Definition Classes
- SimpleModule
- def setupModule(context: SetupContext): Unit
- Definition Classes
- PlayJsonModule → SimpleModule → Module
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def version(): Version
- Definition Classes
- SimpleModule → Module → Versioned
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()