[jQuery] querying JSON

[jQuery] querying JSON


Surely this is totally obvious and basic... but I can't seem to figure
it out:
var myJSONreturnObject =
[
{Name: 'hello",Id:11},
{Name: 'hello again",Id:22,
SubItem :
[
{Thing:"something",Id:234987},
{Thing:"something else",Id:982734},
]
},
{Name: 'hello once more",Id:9},
]
I want to do some sort of query on a JSON object like "SELECT * FROM
myJSONreturnObject WHERE myJSONreturnObject.Id = 22"
i started with:
if(myJSONreturnObject.Id==22) ... and now I'm totally stumped.