Create utils.py
Browse files- src/utils.py +6 -0
src/utils.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from typing import Any, Dict
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def pretty_json(d: Dict[str, Any]) -> str:
|
| 6 |
+
return json.dumps(d, ensure_ascii=False, indent=2)
|