refactored run_sstable2json and run_json2sstable to use file handles rather than paths