IntelliJ Idea Debug

less than 1 minute read

Debug : Get object as JSON

See the Java Object using jackson mapper conversion

new com.fasterxml.jackson.databind.ObjectMapper()
    .registerModule(new com.fasterxml.jackson.datatype.jsr310.JavaTimeModule())
    .disable(com.fasterxml.jackson.databind.SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
    .setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
    .writerWithDefaultPrettyPrinter()
    .writeValueAsString( obj );

Show ByteCode

showByteCode.png