<Jackson TypeSerializer in a custom serializer> I ...
# stackoverflow
r
Jackson TypeSerializer in a custom serializer I want to create a custom annotation to serialize Map instances as json arrays with a key and value fields which are customizable by a user. For an example: @JsonMap(key = "person", value = "address") Map should result in an array with the following structure: [ { "person": { }, "address": { } }, { "person": { }, "address": { } } ] This is my current setup which works exactly as described: fun main() { val mapper = jacksonObjectMapper() val data =...