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