Create export_utils.py
Browse files- export_utils.py +7 -0
export_utils.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
|
| 3 |
+
def export_json(data):
|
| 4 |
+
path = "/tmp/results.json"
|
| 5 |
+
with open(path, "w") as f:
|
| 6 |
+
json.dump(data, f, indent=2)
|
| 7 |
+
return path
|