Jackson coercing to zero <p>Using JAX-RS (GlassFish 4) and Jackson as serializer, I encountered a problem during deserialization of POJO properties of type <code>Double</code> (same with <code>Integer</code>).</p> <p>Lets say I have simple POJO (excluding bunch of other fieds, getters and setters):</p> <pre><code>public class MapConstraints { private Double zoomLatitude; private Double zoomLongitude; } </code></pre> <p>When a user send request to API in format <code>{ "zoomLatitude": "14.45", "zoomLongitude": ""}</code>, value of <code>zoomLatitude</code> is set to <code>14.45</code>, but value of <code>zoomLongitude</code> is set to <code>0</code>. </p> <p>I expect value of <code>zoomLongitude</code> to be <code>null</code> if no value is presented. I tried configure <code>ObjectMapper</code> with <code>JsonInclude.Include.NON_EMPTY</code> but without success.</p> <p>Same results with genson.</p>