Add example of writing data to a JSON file and loading it in a document.