title: Serialize a custom List to JSON and deserialize the same to that custom list using Newtonsoft
body: <p>In my Windows 8.1 app I want to store the result of my custom generated List optimally to my local storage so that I can retrieve it later on even after the app closes.<br>
  The Newtonsoft JSON serializer helps me in serializing the List to string format  that I can store in any text file. But deserializing it wont fetch the required List.  </p>
  
  <p><strong>Class</strong> </p>
  
  <pre><code>  public class BookDetailsItem
          {
              public string Id { get; set; }
              public ImageSource CoverImage { get; set; }
              public string Name { get; set; }
              public Visibility ProgressVisi { get; set; }
              public List&lt;StoryDetailsItem&gt; stories { get; set; }
          }
      public class StoryDetailsItem
          {
              public string Id { get; set; }
              public string Name { get; set; }           
              public ImageSource CoverImage { get; set; }
              public string Time { get; set; }
              public string Word { get; set; }
              public Visibility ProgressVisi { get; set; }
          }  
  </code></pre>
  
  <p>Now I am adding my required items to a list of this class</p>
  
  <pre><code>List&lt;BookDetailsItem&gt; tempbook = new List&lt;BookDetailsItem&gt;();
  tempbook.Add(......);
  </code></pre>
  
  <p>Now Serializing it I can store it in any txt file </p>
  
  <pre><code>string tempstr = JsonConvert.SerializeObject(tempbook);
  </code></pre>
  
  <p>But deserializing it how can I get back the same List all I am getting is an object which isnt in correct format </p>
  
  <pre><code>var obj1 = (JsonConvert.DeserializeObject(tempstr));
  </code></pre>
  
  <p>Is there any other way in which I can store these data in Local storage more easily and optimally(without creating a SQlite database).</p>