import json


def parse_broadcast_message(to_parse):
    """Parse the given string as a json and return a dictionary with the json's contents"""
    try:
        decoded = json.loads(to_parse)
        if decoded is not None:
            return decoded
    except ValueError:
        # this is a JSONDecodeError, but we are catching superclass for backwards compatibility
        return None