Access Json object : Twig
===

I have passed  a JSON object to my twig template in symfony2, then i have assigned the object to JavaScript variable.

My object is like 

`[{&quot;data&quot;:&quot;{&quot;params&quot;:{&quot;id&quot;:&quot;1&quot;,&quot;width&quot;:&quot;98&quot;,&quot;height&quot;:&quot;101&quot;,&quot;x&quot;:&quot;151&quot;,&quot;y&quot; ....`

Now when i alert the object it shows the above object`array()` which is OK, but when i alert object.data it shows nothing. 

Thanks
