Commit 9eb6e6d2 authored by Jérome Perrin's avatar Jérome Perrin

use python json module to save as json

parent 8f3bc24b
......@@ -345,9 +345,8 @@ def main(argv=[], input_data=None):
except AttributeError:
pass
outputJSONString=str(str(G.outputJSON))
outputJSONString=outputJSONString.replace("'", '"')
G.outputJSONFile.write(str(outputJSONString))
outputJSONString=json.dumps(G.outputJSON, indent=True)
G.outputJSONFile.write(outputJSONString)
'''
#output data to excel for every object in the topology
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment