实体转化为JsonString的路线图

实体转化为JsonString的路线图

object---JSONOBJETC----》jsonObject----JsonUntils---->String

                     response.setContentType("text/html;charset=utf-8");

    String str = JSONUtils.valueToString(JSONObject.fromObject(new JsonMsg(map1.get("ARTNFLAG")+"",map1.get("MSG")+"")));

    response.getWriter().write(str);

    response.getWriter().flush();

猜你喜欢

转载自yuhuiblog6338999322098842.iteye.com/blog/2331202