/** * 解析对象形式的json字符串 */ public static void test1() { String jsonStr = "{\"JACKIE_ZHANG\":\"张学友\",\"ANDY_LAU\":\"刘德华\",\"LIMING\":\"黎明\",\"Aaron_Kwok\"... ...
分类:
Web程序 时间:
2017-09-14 20:04:05
阅读次数:
179
User user = new User(); user.setPhone("11111111"); user.setNmae("张三"); user.setPhone("twtwtwtwtwtwtwtwtwtwtwtwtwtwtwtwtw"); List users = new ArrayList... ...
分类:
移动开发 时间:
2017-09-14 16:37:52
阅读次数:
198
JSON技术的调研报告 一 、各个JSON技术的简介和优劣 1.json-lib json-lib最开始的也是应用最广泛的json解析工具,json-lib 不好的地方确实是依赖于很多第三方包, 包括commons-beanutils.jar,commons-collections-3.2.jar, ...
分类:
Web程序 时间:
2017-09-12 12:16:33
阅读次数:
599
1 项目中需要将获取的数据按照顺序读取并且展示的时候的实例, 2 下面截图是将获取到的小区的照片。按照获取的顺序同步到ES 搜索服务器上 3 用到的JSON包是alibaba.fastjson包,此包可以将获取的数据存放在指定的集合中,在此项目中就是定义了LinkedHashMap ...
分类:
其他好文 时间:
2017-09-12 10:41:05
阅读次数:
169
1 2 3 4 5 6 text/html;charset=UTF-8 7 application/json 8 9 ... ...
分类:
编程语言 时间:
2017-09-11 13:15:29
阅读次数:
192
使用fastJSON ,在枚举中写toString 方法 如下@Overridepublic String toString() {return "{" + this.name() + ":" + description +'}';}description 就是你的中文描述然后配置fastjson针 ...
分类:
编程语言 时间:
2017-09-07 12:01:37
阅读次数:
195
1:javascript对JSON的支持2:java对JSON的支持 alibaba->fastjson 封装工具类: 1 import com.alibaba.fastjson.JSONObject; 2 3 public class JSONBuilder { 4 JSONObject json... ...
分类:
Web程序 时间:
2017-09-04 22:45:47
阅读次数:
239