added argparse to json generator