Add example of generating JSON in a python script and loading it using from_json.