rails/rails — pull request #6094 by jfirebaugh (2012-04-30 20:30:58+00:00)
Title: Provide a more useful definition of json_escape

The existing definition removes double quote characters, and hence returns invalid JSON, making it unsuitable for the most common use case: [bootstrapping JSON within a `
```

Also related is the discussion of the other `j` helper at #3578.