title: Pretty print JSON preserve property order
body: <p>I've read several posts on using <code>JSON.stringify</code> to pretty print a JSON string with Javascript. However, it seems to re-order the nodes. I would like to have a formatted JSON object in the same order as the string provided.</p>
  
  <p>Here's an example of what I get using the prescribed methods</p>
  
  <pre><code>var sJson = '{"2":"stuff", "1":"care"}';
  alert(JSON.stringify(JSON.parse(sJson), null, 2));
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>{
    "1": "care",
    "2": "stuff"
  }
  </code></pre>
  
  <p>Desired Result:</p>
  
  <pre><code>{
    "2": "stuff",
    "1": "care"
  }
  </code></pre>
  
  <p>I'm happy to use an external library if <code>JSON.stringify</code> is unable to do this. Note: I'm starting with a minified JSON string from the server.</p>