How to format a JSON String in Swift?
<p>I have a JSON String that follows a format like <code>{ name: "John" }</code> and not <code>{ "name" : "John"}</code> and that is resulting in a nil whenever I try to access the name key because:</p>

<p><code>Error Domain=NSCocoaErrorDomain Code=3840 "No string key for value in object around character 1."</code></p>

<p>I am looking for a function that fixes/parses/formats this JSON file into something readable? How do sites like <a href="http://jsonformat.com/#jsondataurllabel" rel="nofollow">JSON Format</a> do it?</p>