Anyone knows how to handle that?
# ktor
j
Anyone knows how to handle that?
e
Hi @Johnroest, what serializer do you use?
j
Hi, I use Gson
Do I need to create a seperate serializer per object?
e
Could you try to create default constructor without parameters?
p
I think Moshi handles null better than gson
with gson you can do somthing like this:
Copy code
return Gson().fromJson(json, MyDataClass::class.java).copy()
it will fail if something is null