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://codercto.com/soft/d/2673.html

Thirty-three Miniatures

Thirty-three Miniatures

Jiří Matoušek / American Mathematical Socity / 2010-6-18 / USD 24.60

This volume contains a collection of clever mathematical applications of linear algebra, mainly in combinatorics, geometry, and algorithms. Each chapter covers a single main result with motivation and......一起来看看 《Thirty-three Miniatures》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具