title: Store WP state on phone
body: <p>I want to store the state of the app on the phone to recreate it when the app starts again.</p>
  
  <p>The problem is that I need to store things like <code>IDictionary&lt;string, object&gt;</code> that includes all kind of types. Is there any good way to do this?</p>
  
  <p>I don't want to do it for every type manually, like I am doing now. I am converting every type to json, and save it as a string. I currently need a file system on the phone like</p>
  
  <pre><code>MyApp \\ JObjects \\ asd.json
  MyApp \\ Dictionary_string_int \\ asd2.json
  </code></pre>
  
  <p>...etc., so I can get the type of the original object later on and can call</p>
  
  <p><code>Deserialze&lt; IDictionary&lt;string, int&gt; &gt;(..)</code> for example</p>
  
  <p>And that's very painful. Every time I want to store a new type, I have to implement a method for that first and test it. And objects like <code>IDicionary&lt; string, IDicitionary&lt;string, object&gt;&gt;</code> are particulary painful.</p>