Updated Home (markdown)

fangyidong
2015-04-25 21:44:22 +08:00
parent 10d20a2c98
commit 8bb67d45fc

20
Home.md

@@ -1,10 +1,4 @@
=== GitHub ===
[https://github.com/fangyidong/json-simple https://github.com/fangyidong/json-simple]
===Overview===
JSON.simple is a simple Java toolkit for JSON. You can use JSON.simple to encode or decode JSON text.
===Features===
# Features
* Full compliance with [http://www.ietf.org/rfc/rfc4627.txt JSON specification] (RFC4627) and reliable (see [ComplianceTesting compliance testing])
* Provides multiple functionalities such as encode, decode/parse and escape JSON text while keeping the library lightweight
@@ -23,7 +17,7 @@ JSON.simple is a simple Java toolkit for JSON. You can use JSON.simple to encode
* Both of the source code and the binary are JDK1.2 compatible
===Getting Started===
# Getting Started
Note: You need to put the latest [http://json-simple.googlecode.com/files/json-simple-1.1.1.jar json-simple-1.1.1.jar] in your CLASSPATH before compiling and running the example codes.
* [EncodingExamples Encoding Examples]
@@ -31,7 +25,7 @@ Note: You need to put the latest [http://json-simple.googlecode.com/files/json-s
* [EscapingExamples Escaping Examples]
* [JSPAndAJAXExamples JSP and AJAX Examples]
===Mapping Between JSON and Java Entities===
# Mapping Between JSON and Java Entities
|| *JSON* || *Java* ||
|| string || java.lang.String ||
|| number || java.lang.Number ||
@@ -42,14 +36,10 @@ Note: You need to put the latest [http://json-simple.googlecode.com/files/json-s
JSON.simple maps entities from the left side to the right side while decoding or parsing, and maps entities from the right to the left while encoding. While decoding, default concrete class of java.util.List is org.json.simple.JSONArray and default concrete class of java.util.Map is org.json.simple.JSONObject. While encoding, other classes that are not listed on the right side of the table need to implement [http://code.google.com/p/json-simple/source/browse/trunk/src/org/json/simple/JSONAware.java JSONAware] or [http://code.google.com/p/json-simple/source/browse/trunk/src/org/json/simple/JSONStreamAware.java JSONStreamAware] (streaming only) to [http://code.google.com/p/json-simple/wiki/EncodingExamples#Example_6-1_-_Customize_JSON_outputs customize] JSON outputs. In such cases, JSON.simple calls JSONAware.toJSONString() or JSONStreamAware.writeJSONString() to determine the resulting JSON text.
===Maven Repository===
# Maven Repository
* [JSONSimpleInCentralMavenRepository JSON.simple in central maven repository]
===Developer's Guide===
# Developer's Guide
* [BuildWithAnt Build With Ant]
* [BuildWithEclipse Build With Eclipse]
* [Lexer The JSON Lexer]
===Links====
* [http://json.org JSON.org]
* [http://json-simple.googlecode.com/files/json_simple.zip Initial version of JSON.simple]