Consider following example:
JSON input:
{
"glossary":{
"title":"example glossary",
"GlossDiv":{
"title":"S"
}
},
"GlossDiv":{
"title":"S"
}
}
Generated code:
data class test(
val glossary: Glossary?,
val GlossDiv: GlossDivX?
)
data class Glossary(
val title: String?,
val GlossDiv: GlossDiv?
)
data class GlossDivX(
val title: String?
)
data class GlossDiv(
val title: String?
)
As you see JSON contains two properties with same name: GlossDiv.
By default this generates two different classes: GlossDiv and GlossDivX.
Maybe, it's possible to add an option merge such multiple classes this into one class e.g GlossDiv?
Consider following example:
JSON input:
Generated code:
As you see JSON contains two properties with same name: GlossDiv.
By default this generates two different classes: GlossDiv and GlossDivX.
Maybe, it's possible to add an option merge such multiple classes this into one class e.g GlossDiv?