def parse_json_feed_bytes(data: bytes) -> JSONFeed:
    """Parse a JSON feed from a byte-string containing JSON data."""
    try:
        root = json.loads(data)
    except json.decoder.JSONDecodeError:
        raise FeedJSONError('Not a valid JSON document')

    return parse_json_feed(root)
def parse_json_feed_bytes ( data : bytes ) -> JSONFeed : try : root = json . loads ( data ) except json . decoder . JSONDecodeError : raise FeedJSONError ( 'Not a valid JSON document' ) return parse_json_feed ( root )
Parse a JSON feed from a byte-string containing JSON data.