Improved JSON file creation and checking with JSON R files.