Res.render caused a missing] after element list error.

  node.js, question

router.get(‘/poiData’,function (req,res) {

mongo.find( 'part', {}, {},
 function ( list ) {
 var content=[];
 for(var i in list){
 var item={
 lng:i['lon'],
 lat:i['lat'],
 count:i['checkin_num']
 };
 content.push(item);
 bracket
 res.render('poiData',{
 'poiData':content
 });
 bracket
 );

});

Some codes in jade
var content = JSON.parse(#{poiData});

var layer = new Mapv.Layer({
 Mapv: mapv, // corresponding mapv instance
 ZIndex: 1, // Layer Level
 DataType: 'point', // Data Type, Point Type
 Data: content, // data

Mistakes Made by Firefox

图片描述][1]![clipboard.png

res.render('poiData',{
 'poiData':JSON.stringify(content)
 });
 
 
 var content = JSON.parse("#{poiData}");
 
 Try this instead.