var num={ 1:{"id": 1, "name": "Один"}, 2:{"id": 2, "name": "Два"}, 3:{"id": 3, "name": "Три"} }, search=2; if(search in num) console.log(num[search].name);