title: JSON Object Key with Quotes in them - How?
body: <p>I have a list of names and am using them as keys to a json object, however, sometimes, the key might contain double quotes in them, like so:</p>
  
  <pre><code>var parts = {
      Expando Sleeve 1/4": [
      {
          id:"45", name:"TEST REPORT", partID:"4"
      },
      {
          id:"15", name:"01-077512", partID:"4"
      }]
  };
  </code></pre>
  
  <p>So, the problem I'm facing here is I have the name as <code>Expando Sleeve 1/4"</code> which is what I need it to be, but I have it stored inside a hidden input element on the page like so: <code>&lt;input type="hidden" value="Expando Sleeve 1/4"" name="partName" /&gt;</code></p>
  
  <p>So I do an ajax call, than use the value of the hidden input element... like so to add response values to a global <code>parts</code> array...</p>
  
  <pre><code>var $val = $('input[name="partName"]').val();
  
  if (!parts.hasOwnProperty($val))
      parts[$val] = [];
  
  parts[$val].push(response[$val]);
  </code></pre>
  
  <p>The problem here is that it adds the key into the json object <code>parts</code> like so:</p>
  
  <p><code>parts[Expando Sleeve 1/4\"]</code> instead of parts<code>[Expando Sleeve 1/4"]</code>.  So I'm struggling on how to unescape the double quote in here and have the key set like this:  <code>Expando Sleeve 1/4"</code>.</p>
  
  <p>How can I accomplish this? </p>