function my_func(ui){
//Чего-то делаем, к примеру:
alert(ui);
}
var data = [
{"i_id":"2223", "i_post":"qwerty", "i_descriptions": [
{"type":"html","value":"\r\n"},
{"type":"html","value":" "},
{"type":"html","value":"\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0442\u0438\u0440\u0430\u0436\u0430 #48","color":"99ccff"},
{"type":"html","value":" "}
], "ui_status":"4", "ui_bid":"12414124125"},
{"i_id":"2228", "i_post":"qwerty", "i_descriptions": [
{"type":"html","value":"\r\n"},
{"type":"html","value":" "},
{"type":"html","value":"\u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0442\u0438\u0440\u0430\u0436\u0430 #48","color":"99ccff"},
{"type":"html","value":" "}
], "ui_status":"4", "ui_bid":"0"}
];
data.forEach(function(e){
var ubid = e.ui_bid;
+ubid&&my_func(ubid);
});
И прошу, в будущем не нужно давать неотформатированный код, мы же люди, а не машины.