Files
BA-AD/baad/helpers/json.py
ヒヤシンス d4b9e8530d restructured: init
- refactored entire codebase
- remove --category
- remove --version
- docs: updated tutorial
- docs: readme update
- renamed files to proper python style guide
- replace old crypto with ba-cy
- moved images to .github/resources
- moved extractors to its own folder (extractors)
- renamed lib to crypto
- moved some functions to its own helper
- added helper scripts
2025-06-14 20:52:12 +08:00

14 lines
341 B
Python

import json
from pathlib import Path
from typing import Dict, Any
def load_json(file_path: Path) -> Dict[str, Any]:
with open(file_path, 'r') as f:
return json.load(f)
def save_json(file_path: Path, data: Dict[str, Any], indent: int = 4) -> None:
with open(file_path, 'w') as f:
json.dump(data, f, indent=indent)