Package org.nutz.json

Examples of org.nutz.json.JsonIgnore


        // 判断字段是否被强制输出为字符串
        if (null != jf) {
            jef.setForceString(jf.forceString());
        }
       
        JsonIgnore jsonIgnore = fld.getAnnotation(JsonIgnore.class);
        if (jsonIgnore != null) {
            Mirror<?> fldMirror = Mirror.me(fld.getType());
            jef.isInt = fldMirror.isInt();
            jef.isDouble = fldMirror.isDouble() || fldMirror.isFloat();
          jef.hasJsonIgnore = true;
            if (jef.isDouble)
              jef.ignoreNullDouble = jsonIgnore.null_double();
            if (jef.isInt)
              jef.ignoreNullInt = jsonIgnore.null_int();
        }
       
        return jef;
    }
View Full Code Here

TOP

Related Classes of org.nutz.json.JsonIgnore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.