'Unpacks the json input state into a dict.'

def _unpack(self, json_value):

    d = json.loads(json_value)
    if (not isinstance(d, dict)):
        d = {}
    comment_value = d.get('comment', '')
    if (not isinstance(comment_value, basestring)):
        comment_value = ''
    options_value = d.get('options', [])
    if (not isinstance(options_value, list)):
        options_value = []
    return {'options_value': options_value, 'has_options_value': (len(options_value) > 0), 'comment_value': comment_value}
