将json文件转换为字符串
摘要://从给定位置读取Json文件 public String readJson(String path){ //从给定位置获取文件 File file = new File(path); BufferedReader reader = null; //返回值,使用StringBuffer String
阅读全文
posted @
2016-04-20 14:16
风又奈何
阅读(3029)
推荐(1) 编辑
json 帮助工具
摘要:import java.lang.reflect.Type;import com.google.gson.Gson;/*** json 帮助工具*/public final class GsonUtil { private GsonUtil() { } /** * Object转JSON对象 *...
阅读全文
posted @
2015-12-21 09:32
风又奈何
阅读(237)
推荐(0) 编辑