<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector, regression: JS/JSON pretty-printing sporadically broken in STP8"
   href="https://bugs.webkit.org/show_bug.cgi?id=159511#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector, regression: JS/JSON pretty-printing sporadically broken in STP8"
   href="https://bugs.webkit.org/show_bug.cgi?id=159511">bug 159511</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>The &quot;application/json&quot; content looks like:

    {&quot;e&quot;:&quot;...&quot;,&quot;c&quot;:-1,...}/*&quot;&quot;*/

Pretty Printing fails because:
• It is an invalid JavaScript program. (Esprima Parse error)
• JSON.parse fails. (The comment at the end makes it invalid)

I suppose instead of JSON.parse we could try '(' + str + ')' and chopping off some pieces. That is rather unfortunate.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>