classjson extends Annotation with StaticAnnotation
"@json" macro annotation for case classes
This macro annotation automatically creates a JSON serializer for the annotated case class.
The companion object will be automatically created if it does not already exist.
If the case class has more than one field, the default Play formatter is used.
If the case class has only one field, the field is directly serialized. For example, if A
is defined as:
case class A(value: Int)
then A(4) will be serialized as '4' instead of '{"value": 4}'.
"@json" macro annotation for case classes
This macro annotation automatically creates a JSON serializer for the annotated case class. The companion object will be automatically created if it does not already exist.
If the case class has more than one field, the default Play formatter is used. If the case class has only one field, the field is directly serialized. For example, if A is defined as:
case class A(value: Int)
then A(4) will be serialized as '4' instead of '{"value": 4}'.