https://kotlinlang.org logo
#announcements
Title
# announcements
l

ltm150895

08/21/2017, 12:13 AM
any ideas of how to not use the same data class to receive / send json like data ? , thanks in advance 🙂
k

karelpeeters

08/21/2017, 7:19 AM
Maybe I'm misunderstanding you problem, but the error message says the class within the annotation has to implement
TypeAdapter
or
TypeAdapterFactory
, while you're implementing
JsonDeserializer
. Just implement the correct one to fix the issue.
l

ltm150895

08/23/2017, 12:47 PM
I will try after work, thank you 👍
Funny thing, i updated the dependency "com.google.code.gson" to version = 2.8.1 and it works without any code changes
2 Views