json to argparse code example Example: json to argparse t_args = argparse.Namespace() t_args.__dict__.update(json.load(f))