Overview: Evaluating an expression in the web inspector console such as `JSON.stringify({foo:'bar'})`will produce a text result of `"{"foo":"bar"}"`, which if copied and pasted back into the console is a syntax error. It would be useful if we escape inner quote marks, or in some way format this, such that what is displayed is a valid javascript expression. Steps to reproduce: Evaluate an expression such as `JSON.stringify({foo:'bar'})` Expected result: Console result which is a valid JavaScript expression, such as `"{\"foo\":\"bar\"}"`. Actual result: The contents of the result string, wrapped in double quotes, but without inner quotes escaped.
<rdar://problem/14499707>