MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / load_json

Function load_json

mbench/utils.py:46–57  ·  view source on GitHub ↗

Load data from JSON file Args: filepath: Path to the JSON file Returns: Loaded data

(filepath: str)

Source from the content-addressed store, hash-verified

44
45
46def load_json(filepath: str) -> Union[Dict, List]:
47 """
48 Load data from JSON file
49
50 Args:
51 filepath: Path to the JSON file
52
53 Returns:
54 Loaded data
55 """
56 with open(filepath, 'r', encoding='utf-8') as f:
57 return json.load(f)
58
59
60

Callers 3

load_dimension_infoFunction · 0.85
build_full_info_jsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected