When documents are uploaded, the fields in the page are converted to json and saved in a separate file