I\'m a beginning java programmer, so I\'m sorry if my question is kind of dumb.
I have a JSON object that looks like this:
{ \"element1\" : { \"g
Check this
How to not send an empty collection in jackson
For empty node in Json you can use
http://jackson.codehaus.org/1.1.2/javadoc/org/codehaus/jackson/node/ObjectNode.html#remove(java.lang.String)
Removing JSON elements with jackson
These can solve your problem.