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 ...
))
jcechace
10/23/2018, 2:24 PM
Anyone aware of some more elegant way? I supsect SerialClassDescImpl might be useful