package playjson
- Alphabetic
- Public
- All
Type Members
-
abstract
class
JsonMigration extends AnyRef
Data migration of old formats to current format can be implemented in a concrete subclass or provided through the factories in JsonMigrations and configured to be used by the
PlayJsonSerializer
for a changed class.Data migration of old formats to current format can be implemented in a concrete subclass or provided through the factories in JsonMigrations and configured to be used by the
PlayJsonSerializer
for a changed class.It is used when deserializing data of older version than the currentVersion. You implement the transformation of the JSON structure in the transform method. If you have changed the class name you should override transformClassName and return current class name.
- class JsonSerializationFailed extends RuntimeException
-
sealed
trait
JsonSerializer[T] extends AnyRef
Describes how to serialize and deserialize a type using play-json
-
abstract
class
JsonSerializerRegistry extends AnyRef
Create a concrete subclass of this and initialise the actor system either by providing it in your application cake or manually by creating a serialization setup and passing it to the ActorSystem constructor.
-
trait
ProvidesJsonSerializerRegistry extends AnyRef
This can be used to depend on an optionally provided serializer registry.
This can be used to depend on an optionally provided serializer registry.
The purpose of this is to allow Lagom to configure its actor system to use a provided serializer registry if one is provided, but not require one to be provided. It is used in combination with RequiresJsonSerializerRegistry, which for example the persistence components traits can extend to force a user to provide one, and provides that mandatory serializer as the optional serializer provided by this trait.
-
trait
RequiresJsonSerializerRegistry extends ProvidesJsonSerializerRegistry
This can be used to mark that using a particular set of components requires a JSON serializer registry to be defined.
This can be used to mark that using a particular set of components requires a JSON serializer registry to be defined.
The jsonSerializerFactory is intentionally abstract to force end users to provide one.
Value Members
-
object
EmptyJsonSerializerRegistry extends JsonSerializerRegistry
An empty serializer registry.
-
object
JsonMigrations
Convenience factories to create JsonMigrations.
- object JsonSerializer
- object JsonSerializerRegistry