clean up json response