I am using commands.getstatusoutput(cmd) to run a command line program that returns a python list. getstatusoutput converts that python list to a string.
_, output = commands.getstatusoutput('mypythonprogram') print output '[{1:1,2:2}, {3:3, 4:4}]'
I want to use that output as a regular python list in my program. Is there something similar to json.loads that I can use?
Note: Importing 'mypythonprogram' is not an option.