def convert_value(v):
    """
    默认使用Json转化数据,凡以[或{开始的,均载入json
    :param v:
    :return:
    """
    if v and isinstance(v, six.string_types):
        v = v.strip()
        if (v.startswith('{') and v.endswith('}')) or (v.startswith('[') and v.endswith(']')):
            try:
                return json.loads(v)
            except Exception as e:
                logger.error(e)

    return v
def convert_value ( v ) : if v and isinstance ( v , six . string_types ) : v = v . strip ( ) if ( v . startswith ( '{' ) and v . endswith ( '}' ) ) or ( v . startswith ( '[' ) and v . endswith ( ']' ) ) : try : return json . loads ( v ) except Exception as e : logger . error ( e ) return v
默认使用Json转化数据,凡以[或{开始的,均载入json
    :param v:
    :return: