import json


def _read_as_json(msg):
    """Decode message (UTF-8) and read into dictionary.

    :param msg: str to decode and deserialize
    :return: Dictionary from message
    """
    msg_body = msg.get_body().decode("utf-8")
    return json.loads(msg_body)