title: Preserving references when deserializing from json
body: <p>I am implementing a tagging system in my application. I have a main list of all <code>Tags</code> to tag objects with. Objects can have multiple tags, which are references to tags in the main list.</p>
  
  <p>When I save my data to a file as json and then load it when my app runs again, these references are lost (<code>tagInMainList == referenceToTag</code> does not hold).</p>
  
  <p>How can I fix this?</p>