Another one. I have a java class which consist mai...
# serialization
j
Another one. I have a java class which consist mainly of primitive properties (lets assume only from primitive properties). Do I really have to write a serializer which contains something like
Copy code
val json = JsonObject(mapOf(
            "apiId" to JsonPrimitive(obj.apiId),
            "organizationId" to JsonPrimitive(obj.organizationId),
//            .... endless ...
        ))
Anyone aware of some more elegant way? I supsect SerialClassDescImpl might be useful