package leonard
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- case class ClassMapping[A](name: String, format: Format[A]) extends Product with Serializable
- case class MergedObject(discriminatorProperty: String) extends SerializationStrategy with Product with Serializable
MergedObject strategy will format JSON like this { "prop1": "Example content", "type": "Cat" }
MergedObject strategy will format JSON like this { "prop1": "Example content", "type": "Cat" }
With "type" being the default discriminator merged with the serialized object properties
- sealed trait SerializationStrategy extends AnyRef
A serializationStrategy is responsible of serialized JSON content organisation
- case class SubProperty(discriminatorProperty: String, containerProperty: String) extends SerializationStrategy with Product with Serializable
SubProperty strategy will format JSON like this { "value": { "prop1": "Example content" }, "type": "Cat" }
- class TraitFormat[Supertype] extends Format[Supertype]
Value Members
- object MergedObject extends MergedObject
- object SubProperty extends SubProperty
- object TraitFormat