title: Spring Rest Exception Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT
body: <p>I have a class</p>
  
  <pre><code>@Document(collection="emp_data") 
  public class Employee{
      String name; 
  
      @Id 
      String id; 
  
      List&lt;Skill&gt; skills;
      //getter/setters 
  
      public static class Skill{
          String name;
          Integer level;
      }
  }
  </code></pre>
  
  <p>My JSON is </p>
  
  <pre><code>{"id":"XXX","name":"john","skills":[{"name":"football","level":0}]}
  </code></pre>
  
  <p>When I POST this to a </p>
  
  <blockquote>
    <p>@RestController class  The createEmployee(@RequestBody Employee emp)
    method</p>
  </blockquote>
  
  <p>I get the following exception
  Spring Rest Exception Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT
  This is while de-serializing the skills collection, I tried to debut the JAckson ObjectMapper is throwing this exception when BeanDeserialiser try to deserialise the object.</p>
  
  <blockquote>
    <p>If any one can share a sample working object and controller with a ComplexObject containing List</p>
  </blockquote>