Execute a command with JSON string in python
Question: How do we execute a shell command with a JSON string in python?

The command is like:

    
    
    tool --options '{"oldTool" : "yes"}'
    

Thanks!


Answer: I would import call from subprocess (`from subprocess import call`) and then
use the call command: `call("tool", "--options '{\"oldTool\" : \"yes\"}')`
(Backslashes can be replaced with whatever the python escape character is).
Although, your question is rather vague.

