Objeto de exportação do Intellij Debugger como JSON

Debug Watch - Add this

new ObjectMapper()
    .setSerializationInclusion(JsonInclude.Include.NON_NULL)
    .writerWithDefaultPrettyPrinter()
    .writeValueAsString( myObject )
Disgusted Dunlin