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