mirror of https://gitlab.com/bashrc2/epicyon
Can save lists as json
parent
82172e0949
commit
5504c5b33e
1
utils.py
1
utils.py
|
@ -1213,6 +1213,7 @@ def save_json(json_object: {}, filename: str) -> bool:
|
||||||
"""Saves json to a file
|
"""Saves json to a file
|
||||||
"""
|
"""
|
||||||
if not isinstance(json_object, dict):
|
if not isinstance(json_object, dict):
|
||||||
|
if not isinstance(json_object, list):
|
||||||
print('EX: save_json object is not json ' + str(json_object))
|
print('EX: save_json object is not json ' + str(json_object))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue