How to pass a json as a string argument in python code with use of argsparse and Powershell?
I've been wrapping my head around this problem and can't find a solution. I have a pretty simple code: import argparse import json def main(): parser = argparse.ArgumentParser(description="Process a JSON argument.") parser.add_argument( "--json", type=str, required=True, help="JSON string or path to…