play.api.libs.json.jackson
package play.api.libs.json.jackson
Members list
Type members
Classlikes
sealed class PlayJsonMapperModule(jsonConfig: JsonConfig) extends SimpleModule
Attributes
- Supertypes
-
class SimpleModuletrait Serializableclass Moduletrait Versionedclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class PlayJsonModuleobject 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 PlayJsonMapperModuleclass SimpleModuletrait Serializableclass Moduletrait Versionedclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object PlayJsonModule.type
object PlayJsonModule extends PlayJsonModule
Attributes
- Companion
- class
- Deprecated
- true
- Supertypes
-
class PlayJsonModuleclass PlayJsonMapperModuleclass SimpleModuletrait Serializableclass Moduletrait Versionedclass Objecttrait Matchableclass AnyShow all
- Self type
-
PlayJsonModule.type
In this article