title: json string to object with unknowns
body: <p>As the title describes I'm trying to assign a json string to my class, but the json string will presumably contain several variables which I have not created in the class they are being assigned to.</p>
  
  <p>To show you first what works, I have</p>
  
  <pre><code>    ObjectMapper mapper = new ObjectMapper();
  
      try {
  
          Tweet tweet1 = mapper
                  .readValue(
                          "{\"created_at\":\"Sat Feb 08 11:26:02 +0000 2014\"}",
                          Tweet.class);
  
      } catch (JsonMappingException e) {
  
          e.printStackTrace();
  
      } catch (IOException e) {
  
          e.printStackTrace();
  
      }
  </code></pre>
  
  <p>That works, as the class, Tweet, has the variable "created_at" with getter and setter methods all in place. </p>
  
  <p>Like mentioned though, I need to expect the string in the readValue method to contain things which are not to be found in my Tweet class.</p>
  
  <p>To get around this, I import and use:</p>
  
  <pre><code>    mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
  </code></pre>
  
  <p>Which theoretically helps me avoid all the unknowns in there, and just assigns the values that are to be found in the Tweet class.</p>
  
  <p>So, I add a value which is not to be found in Tweet, like so:</p>
  
  <pre><code>    ObjectMapper mapper = new ObjectMapper();
      mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
  
      try {
  
          Tweet tweet1 = mapper
                  .readValue(
                          "{\"created_at\":\"Sat Feb 08 11:26:02 +0000 2014\",\"id\":432113085571407872\"}",
                          Tweet.class);
  
      } catch (JsonMappingException e) {
  
          e.printStackTrace();
  
      } catch (IOException e) {
  
          e.printStackTrace();
  
      }
  </code></pre>
  
  <p>Now, the value "id" does not exist in my Tweet class, and should therefor be ignored (no?).</p>
  
  <p>But, now the console throws me an error:</p>
  
  <p><strong>com.fasterxml.jackson.core.JsonParseException: Unexpected character ('"' (code 34)): was expecting comma to separate OBJECT entries
   at [Source: java.io.StringReader@7817ea54; line: 1, column: 72]</strong></p>
  
  <p>Now this makes me a sad panda, because I cannot for the life of me understand what it is I'm doing wrong.</p>
  
  <p>Anyone with better eyes and/or a sharper mind than mine, see my mistake?</p>
  
  <p>Or am I going about this all wrong?</p>