title: JSON string to Java object with Jackson
body: <p>This is probably one of those questions where the title says it all.</p>
  
  <p>I am quite fascinated by the ObjectMapper's <code>readValue(file, class)</code> method, found within the Jackson library which reads a JSON string from a file and assigns it to an object.</p>
  
  <p>I'm curious if this is possible to do by simply getting JSON from a string and applying it to an object.</p>
  
  <p>Some sort of alternative <code>readValue()</code> method, which takes a <strong>String</strong>, instead of a file, and assigns it to an object?</p>
  
  <p>For instance, while the default <code>readValue(file, class)</code> method looks like this:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper();
  Student student = mapper.readValue("C:\\student.json", Student.class);
  </code></pre>
  
  <p>I was wondering if there was some method in Jackson, which allowed the following:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper();
  Student student = mapper.readValue("{\"id\":100,\"firstName\":\"Adam\"}", Student.class);
  </code></pre>
  
  <p>The second example takes a string and an object of a class while the first one takes a file and an object of a class.</p>
  
  <p>I just want to cut out the middle man, in this case, the file.</p>
  
  <p>Is this doable or does no such method exist within the constraints of Jackson?</p>