引入包:
import net.sf.json.JSONSerializer;
然后其实就一句话
System.out.println(JSONSerializer.toJSON(rf).toString());
详细的话请看
https://blog.csdn.net/rookie_s/article/details/54862894
引入包:
import net.sf.json.JSONSerializer;
然后其实就一句话
System.out.println(JSONSerializer.toJSON(rf).toString());
详细的话请看
https://blog.csdn.net/rookie_s/article/details/54862894