reformatting json response