Write response JSON data to file.