title: Json:Type information is unavailable, and the target object is not a primitive
body: <p>I am having an <code>Employee</code> class </p>
  
  <pre><code>class Employee {
  String name;
  
  Identity id;
  
  List&lt;Address&gt; addressList;
  }
  </code></pre>
  
  <p>i am getting json format String from resttemplate for employee object.When I am trying to convert the json format string to object using <code>gson.fromJson()</code>.I am getting <code>"Type information is unavailable, and the target object is not a primitive"</code> error.</p>
  
  <p>Even if i go for a token type list that will be the solution to convert list.</p>