Manual tutorial FastJson
/ Fastjson toJSONString
Fastjson toJSONString
Fastjson toJSONString
Fastjson將java對象序列化為JSON字符串,fastjson提供了一個最簡單的入口
package com.alibaba.fastjson; public abstract class JSON { public static String toJSONString(Object object); }
Sample
import com.alibaba.fastjson.JSON; Model model = new Model(); model.id = 1001; String json = JSON.toJSONString(model);