title: JsonProperty in JAVA - defining two variables using the same property
body: <p>I am having a class like,</p>
  <pre><code> public class Test {
  
      @JsonProperty(&quot;values&quot;)
      private List&lt;String&gt; valuesString = null;
  
      @JsonProperty(&quot;values&quot;)
      private List&lt;Boolean&gt; valuesBool = null;
  }
  </code></pre>
  <p>if I give a list of string like below then it needs to be stored in valuesString,
  body,</p>
  <pre><code> {
     &quot;values&quot; : [&quot;Test1&quot;, &quot;Test2&quot;]
   }
  </code></pre>
  <p>if list of boolean then valuesBool,</p>
  <pre><code>   {
         &quot;values&quot; : [false, true]
      }
  </code></pre>
  <p>As of now it is giving me 400 response.</p>