node file system operations for json files