TL;DR: Moshi version of Jackson's @JsonIgnore
. For when you can't use @Transient
.
In Moshi, You can use transient
keyword (in Kotlin: @Transient
annotation) for ignore serialization.
But sometimes it's conflict to other features. e.g. ebean-querybean
.
moshi-kotlin-ignore
is library for ignore parameter serialization / deserialization. You can use this library to resolve above issues.
from The Android Arsenal
No comments:
Post a Comment