Adds formating to json response