def decode(data):
decoded = None<EOL>try:<EOL><INDENT>decoded = json.loads(data)<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise MetaParsingException("<STR_LIT>" % e.message)<EOL><DEDENT>decoded = validator.check_structure(decoded)<EOL>return decoded<EOL>
Handles decoding of the JSON `data`.

Args:
    data (str): Data which will be decoded.

Returns:
    dict: Dictionary with decoded data.