iot_message/message.py
def decode_message(self, message):
        """
        Decode json string to dict. Validate against node name(targets) and protocol version
        :return dict | None
        """
        try:
            message = json.loads(message)
            if not self._validate_message(message):
                message = None
        except ValueError:
            message = None

        return message
def decode_message(self, message):
        """
        Decode json string to dict. Validate against node name(targets) and protocol version
        :return dict | None
        """
        try:
            message = json.loads(message)
            if not self._validate_message(message):
                message = None
        except ValueError:
            message = None

        return message
def decode_message ( self , message ) : try : message = json . loads ( message ) if not self . _validate_message ( message ) : message = None except ValueError : message = None return message
Decode json string to dict. Validate against node name(targets) and protocol version
        :return dict | None
Decode json string to dict . Validate against node name ( targets ) and protocol version : return dict | None