title: Rebuilding an object serialized in JSON
body: <p>In my web app, I'm serializing objects for storage using <a href="http://www.json.org/js.html" rel="nofollow">JSON.stringify() as described here</a>. This is great, and I can easily re-create the objects from the JSON strings, but I lose all of the objects' methods. Is there a simple way to add these methods back to the objects that I'm overlooking - perhaps involving prototyping, something I'm not overly familiar with?</p>
  
  <p>Or is it just a case of creating an elaborate function of my own for doing this?</p>
  
  <p>Edit: Ideally, I'm looking for something like:</p>
  
  <pre><code>Object.inheritMethods(AnotherObject);
  </code></pre>