set id of neighbour in json response