連想配列を検索してインデックスを返す
とりあえず
json.feed.entry.filter.id.$tの文字列に含まれるpostid を取得するケース
var postid = 1;
var new;
json.feed.entry.filter(function(item, index){
if (RegExp(postId).test(item.id.$t)) {new = index;}
});
console.log( new );