We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
将java对象序列化为JSON字符串,fastjson提供了一个最简单的入口
package com.alibaba.fastjson; public abstract class JSON { public static String toJSONString(Object object); }
import com.alibaba.fastjson.JSON; Model model = new Model(); model.id = 1001; String json = JSON.toJSONString(model);