Files
ComfyUI_Skills_OpenClaw/scripts/shared/json_utils.py
T

11 lines
226 B
Python

from __future__ import annotations
import json
from pathlib import Path
from typing import Any
def load_json(path: str | Path) -> Any:
with Path(path).open("r", encoding="utf-8") as file:
return json.load(file)