from typing import Union
from pathlib import Path
import json


def read_json(path: Union[str, Path]):
    """
    Read a json file from a string path
    """
    with open(path) as f:
        return json.load(f)