JSON.simple

码农软件 · 软件分类 · JSON/BSON开发包 · 2019-04-02 07:29:06

软件介绍

JSON.simple是一个简单的Java类库,用于解析和生成JSON文本。不依赖于其它类库,性能高。

示例代码:

  System.out.println("=======decode=======");
               
  String s="[0,{\"1\":{\"2\":{\"3\":{\"4\":[5,{\"6\":7}]}}}}]";
  Object obj=JSONValue.parse(s);
  JSONArray array=(JSONArray)obj;
  System.out.println("======the 2nd element of array======");
  System.out.println(array.get(1));
  System.out.println();
               
  JSONObject obj2=(JSONObject)array.get(1);
  System.out.println("======field \"1\"==========");
  System.out.println(obj2.get("1"));   

               
  s="{}";
  obj=JSONValue.parse(s);
  System.out.println(obj);
               
  s="[5,]";
  obj=JSONValue.parse(s);
  System.out.println(obj);
               
  s="[5,,2]";
  obj=JSONValue.parse(s);
  System.out.println(obj);

本文地址:https://www.codercto.com/soft/d/2673.html

Advanced Web Metrics with Google Analytics, 2nd Edition

Advanced Web Metrics with Google Analytics, 2nd Edition

Brian Clifton / Sybex / 2010-3-15 / USD 39.99

Valuable tips and tricks for using the latest version of Google Analytics Packed with insider tips and tricks, this how-to guide is fully revised to cover the latest version of Google Analytics and sh......一起来看看 《Advanced Web Metrics with Google Analytics, 2nd Edition》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具