Jade gets the object

  node.js, question

Render a page with jade and pass in an object:

router.get('/', function(req, res, next) {
 res.render("index",{
 Title: "Home Page",
 user:{name:"luo",age:19}
 });
 });

jade:

script.
 window.user = #{user}

In the end it was rendered as:

<script>window.user = [object object]</script>

May I know how to correctly assign the value?

window.user = ! {JSON.stringify(user)