How to directly get the output of subprocess.check_output as valid json rather than reading the results stored in a file?
I have a system command which produces json output: ($ cmd -J > file
).
I can read this data perfectly well into a dict using:
How to directly get the output of subprocess.check_output as valid json rather than reading the results stored in a file?
I have a system command which produces json output: ($ cmd -J > file
).
I can read this data perfectly well into a dict using: