title: How to disable conversion of 0/1 to true/false in jackson 2.9.x
body: <p>I have a project that needs a strict json policy.</p>
  
  <p>Example:</p>
  
  <pre><code>public class Foo {
      private boolean test;
  
      ... setters/getters ...
  }
  </code></pre>
  
  <p>Following json should work:</p>
  
  <pre><code>{
      test: true
  }
  </code></pre>
  
  <p>And following should fail (throw exception):</p>
  
  <pre><code>{
      test: 1
  }
  </code></pre>
  
  <p>same for:</p>
  
  <pre><code>{
      test: "1"
  }
  </code></pre>
  
  <p>Basically I want the deserialization to fail if someone provides something different than <code>true</code> or <code>false</code>. Unfortunately jackson treats <code>1</code> as true and <code>0</code> as <code>false</code>. I couldn't find a deserialization feature that disables that strange behavior.</p>