Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/omkarcloud/botasaurus
/ write_json_response
Function
write_json_response
botasaurus_api/botasaurus_api/utils.py:40–43 ·
view source on GitHub ↗
(path, data, indent=4)
Source
from the content-addressed store, hash-verified
38
39
40
def
write_json_response(path, data, indent=4):
41
create_output_directory_if_not_exists()
42
with
open(path,
'w'
, encoding=
"utf-8"
)
as
fp:
43
json.dump(data, fp, indent=indent)
44
45
46
Callers
3
_write_json
Method · 0.85
get_tasks
Method · 0.85
get_task_results
Method · 0.85
Calls
1
create_output_directory_if_not_exists
Function · 0.70
Tested by
no test coverage detected