Hi all first time using java object to Json conversion. I'm trying to have the output (Json) not include any null values.
I've tried the following. objectMapper.setSerializationInclusion(Include.NON_NULL); objectMapper.setSerializationInclusion(Include.NON_EMPTY); @JsonInclude(Include.NON_NULL) However i keep getting an output such as this: "Order1" : [ null, null, null, null, null, null ], "Order2" : [ null, null, null, null, null, null ], I know it is partially working because with out the Include.NON_NULL (and NON_EMPTY), there are around 2200 null values. Anyone know why these are missed? -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
