visionmedia/jade — Issue #383: Multi-level json object
Author: hamachi
Created: 2011-10-24 23:29:23+00:00
State: open

I'm a complete newbie so any help would be greatly appreciated. I have simple json object as below.

{
"name": "application-name"
, "version": "0.0.1"
, "private": true
, "dependencies": {
"express": "2.4.7"
, "jade": ">= 0.0.1"
}
}

Trying to access any properties of "dependencies" like below throws an error. What am I doing wrong? Thanks.

each doc in docs
each d in doc.dependencies
li #{d}