title: stringify JSON reference name, not the referenced object
body: <p>I have a JSON object like so, (this is an example)</p>
  
  <pre><code>house.keys = {
      "key1" : "23456",
      "key2" : "97543",
      "key3" : "35493"
  }
  house.doors = [{
          "name" : "Front door",
          "lock key" : house.keys.key1
      }, {
          "name" : "Back door",
          "lock key" : house.keys.key2
      }
  ]
  </code></pre>
  
  <p>This object is stored in the DB as a string, and read and <code>parsed()</code> on page load.  It will likely be edited by user interaction, then the altered object needs to be <code>stringify()</code>-ed and written back into DB.  I've got everything working except for a problem in the <code>stringify()</code> function.</p>
  
  <p>Instead of this:</p>
  
  <pre><code>"lock key" : house.keys.key1
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>"lock key" : "23456"
  </code></pre>
  
  <p>How do I get the <code>stringify()</code> method to return the referenced object's name instead of the referenced object, itself.</p>
  
  <p>I've looked into using a replacer function:</p>
  
  <pre><code>JSON.stringify(house, replacer);  // Where replacer() returns 'something else' for "lock key", but I don't know what 'something else' is.
  </code></pre>
  
  <p>Thanks.</p>