(Moshi in kotlin) @Json vs @field:Json
问题 Serialization does not happen properly when I use @Json in the fields but it started working after changing to @field:Json . I came through this change after reading some bug thread and I think this is specific to kotlin. I would like to know what difference does @field:Json bring and is it really specific to kotlin? 回答1: Whatever you put between @ and : in your annotation specifies the exact target for your Annotation. When using Kotlin with JVM there is a substantial number of things