Skip to content

Commit 8a26d7f

Browse files
committed
added json_to_file method alias and fixed spelling with json_file_save (was json_file_safe)
1 parent ed14306 commit 8a26d7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

osbot_utils/utils/Json.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def json_save_tmp_file(python_object, pretty=True):
170170
json_file_contents = Json.load_file
171171
json_file_contents_gz = Json.load_file_gz
172172
json_file_load = Json.load_file
173-
json_file_safe = Json.save_file
173+
json_file_save = Json.save_file
174174
json_from_file = Json.load_file
175175
json_load_file = Json.load_file
176176
json_load_file_and_delete = Json.load_file_and_delete
@@ -184,6 +184,7 @@ def json_save_tmp_file(python_object, pretty=True):
184184
json_parse = Json.loads
185185
json_lines_parse = Json.loads_json_lines
186186
json_to_bytes = json_dumps_to_bytes
187+
json_to_file = json_file_save
187188
json_to_str = json_dumps
188189
json_round_trip = Json.round_trip
189190
json_save = Json.save_file

0 commit comments

Comments
 (0)