update API to json response only