def METHOD_NAME(fp):
    """Read COMPAS object data from a JSON file.
    Parameters
    ----------
    fp : path string | file-like object | URL string
        A readable path, a file-like object or a URL pointing to a file.
    Returns
    -------
    object
        The (COMPAS) data contained in the file.
    See Also
    --------
    :class:`compas.data.json_dump`
    :class:`compas.data.json_dumps`
    :class:`compas.data.json_loads`
    Examples
    --------
    >>> import compas
    >>> from compas.geometry import Point, Vector
    >>> data1 = [Point(0, 0, 0), Vector(0, 0, 0)]
    >>> compas.json_dump(data1, 'data.json')
    >>> data2 = compas.json_load('data.json')
    >>> data1 == data2
    True
    """
    with _iotools.open_file(fp, "r") as f:
        return json.load(f, cls=DataDecoder)