$.getData('/people/@viewer/@self', {}, function(people) { var person = people[0]; if(person.isOwner){ console.info(person.id); } }