Saving JSON request into a file.