javascript - Parsing json in underscore? -


i have following json , need display value of "sf"..

 {     "ss": 1,     "me": "successfully retrieved",     "pp": {         "uid": 18,         "ut": "t",         "fn": "dark",         "te": {             "sf": "asd"         }     }  } 

i have passed data html page data , can following values :

data.pp.uid 

but im not able value of :

data.pp.te.sf 

what doing wrong ?

this works fine me in chrome:

var test  = {     "ss": 1,     "me": "successfully retrieved",     "pp": {         "uid": 18,         "ut": "t",         "fn": "dark",         "te": {             "sf": "asd"         }     }  } test.pp.te.sf   "asd" 

Comments