Packages

package playjson

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. 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.

  2. class JsonSerializationFailed extends RuntimeException
  3. sealed trait JsonSerializer[T] extends AnyRef

    Describes how to serialize and deserialize a type using play-json

  4. 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.

  5. 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.

  6. 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

  1. object EmptyJsonSerializerRegistry extends JsonSerializerRegistry

    An empty serializer registry.

  2. object JsonMigrations

    Convenience factories to create JsonMigrations.

  3. object JsonSerializer
  4. object JsonSerializerRegistry

Ungrouped