title: ObjectMapper deserializing required fields
body: <p>Let's say i have such json and i would like to deserialize it to an object called SubscriberProfile.</p>
  
  <pre><code>{ "field1": "value1", "field2": "value2", "field3": "value3" }
  </code></pre>
  
  <p>When i use following code it works without any problem,</p>
  
  <pre><code>objectMapper.readValue(json,SubscriberProfile.class);
  </code></pre>
  
  <p>but i want objectmapper throw and exception if field2 is missing in json (field1 and field2 can be missing).</p>
  
  <p>so such json should throw an exception </p>
  
  <pre><code>{ "field1": "value1", "field3": "value3" }
  </code></pre>
  
  <p>I've tried to use <code>@JsonProperty(required=true)</code> annotation but works only when serialize it. </p>
  
  <p>Do you have any idea how can i solve this problem?</p>
  
  <p>Thanks in advance</p>