I have a jade template for my node.js project. I would like to send an object to the jade template and pass it to a function inside the page (to render something).
Oddly enough, for me the solution involved no calls to JSON.parse. I stringified my object on the server and just used the !{vizJson} method and got my object clientside.
Per the docs, unescaped string interpolation: http://jade-lang.com/reference/interpolation/