def main(): json_fpath = sys.argv[1] csv_fpath = sys.argv[2] table_1 = blocking.load_json(json_fpath) json2csv(table1)
def main(): """Load the input json, format it and dump it in the output json.""" if len(sys.argv) < 3: # check command-line arguments print >> sys.stderr, ('Usage: %s input_json_path output_json_path' % __file__) sys.exit(1) json_ipath = sys.argv[1] json_opath = sys.argv[2] table_1 = blocking.load_json(json_ipath) table_1_formatted = format_date(table_1) tableA_amazon.dump_json(table_1_formatted, json_opath)