JSON-IO
- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://code.google.com/p/json-io/
- 软件文档: https://code.google.com/p/json-io/w/list
软件介绍
JAVA平台下的一款,序列化反序列化工具,重点在于
1.可以直接把JSON反序列化为对象.
2.可反序列化深层复杂的对象.
3.可序列化循环引用等复杂对象.
4.可序列化静态类和内部类.
json-io can be used directly on JSON Strings or with Java's Streams.
Example 1: String to Java object
Object obj = JsonReader.jsonToJava("[\"Hello, World\"]");
This will convert the JSON String to a Java Object graph. In this case, it would consist of an Object[] of one String element.
Example 2: Java object to JSON String
Employee emp; // Emp fetched from database String json = JsonWriter.objectToJson(emp);
This example will convert the Employee instance to a JSON String. If the JsonReader were used on this String, it would reconstitute a JavaEmployee instance.
Example 3: InputStream to Java object
JsonReader jr = new JsonReader(inputStream); Employee emp = (Employee) jr.readObject();
In this example, an InputStream (could be from a File, the Network, etc.) is supplying an unknown amount of JSON. The JsonReader is used to wrap the stream to parse it, and return the Java object graph it represents.
Example 4: Java Object to OutputStream
Employee emp; // emp obtained from database JsonWriter jw = new JsonWriter(outputStream); jw.write(emp); jw.close();
叠加体验:用互联网思维设计商业模式
穆胜 / 机械工业出版社 / 2014-11 / 39.00
本书在互联网思维改变一切的背景下,详细介绍了如何运用互联网思维重构商业模式,主要包括以下内容:①互联网经济中的商业逻辑(即“互联网思维”),不仅给出了消费方面的逻辑变革,还给出了在生产端的逻辑变革以及“跨界”的逻辑变革。②给出了一个“三层产品体验模型”,厘清了互联网思维,打造完美终端、云端服务和价值群落三层体验,企业可以选择做不同层面的体验组合,这即是选择了不同的市场策略。但是,企业要基业长青,终......一起来看看 《叠加体验:用互联网思维设计商业模式》 这本书的介绍吧!
