from typing import Any
import json


def load_json(s: str) -> Any:
    """Load json, but with useful error message.
    """
    try:
        return json.loads(s)
    except json.JSONDecodeError as e:
        raise RuntimeError(f'Failed to parse "{s}" as json.')