in mime_types.py [0:0]
def is_json(mime: str) -> bool: """Returns whether the content is a human-readable json.""" return mime == TEXT_JSON or mime.startswith(TEXT_JSON)