add term id to json response