I am trying to get parent node in json object by child it The json i am getting from client is a multilevel directory hierarchy the hierarchy is like
Root
To get all ocuurences
var pars,k,v,chk; pars = []; $.each(json,function(k,v){ chk = k; $.each(v,function(k,v) if(k === node){ pars.push(chk); } }) })