Json
Customizes how a field is encoded as JSON.
Although this annotation doesn't declare a Target, it is only honored in the following elements:
- Java class fields
- Kotlin properties for use with
{@code moshi-kotlin}
. This includes both properties declared in the constructor and properties declared as members.
Users of the AutoValue: Moshi Extension may also use this annotation on abstract getters.