Package org.nutz.json.bean

Examples of org.nutz.json.bean.JsonObject


        sw.stop();
        System.out.println("Fast-Json 50w次耗时: " + sw.getDuration());
    }
   
    public void nutzJson(int time) {
        JsonObject obj = new JsonObject();
        obj.setName("wendal");
        for (int i = 0; i < time; i++) {
            String jsonStr = Json.toJson(obj);
            obj = Json.fromJson(JsonObject.class, jsonStr);
        }
    }
View Full Code Here


            obj = Json.fromJson(JsonObject.class, jsonStr);
        }
    }
   
    public void fastJson(int time) {
        JsonObject obj = new JsonObject();
        obj.setName("wendal");
        for (int i = 0; i < time; i++) {
            String jsonStr = JSON.toJSONString(obj);
            obj = JSON.parseObject(jsonStr, JsonObject.class);
        }
    }
View Full Code Here

TOP

Related Classes of org.nutz.json.bean.JsonObject

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.