visionmedia/jade — Issue #439: How do you output a JSON object in a script tag?
Author: viatropos
Created: 2011-12-15 22:25:09+00:00
State: open

I just want to do this:

``` html
script(type="text/javascript")
!{JSON.stringify({data: []})}
```

But the result is a string:

``` html

```

It should be:
``` html

```

I could wrap that in a client-side `JSON.parse` but that should be avoidable. How do I do this? Thanks!