0

I have an curiosity of asking about why do we need custom kotlinx serialization ? What I understand is whenever there is an object inside another object then we need to write custom serializer for that particular object

for example :

data class A(var name:String , var person : Person)

data class Person(var age : Int , var color : String)

here we can see class A use Person class so do we need to write custom serializer for Person class and anotate class A with serializer only ?

please answer with example I am confuse about that

  • It's difficult to understand what you're asking. You haven't provided any code, or described an error, or included an error message. What have you tried to do? – aSemy Nov 17 '22 at 05:21

0 Answers0