mirror of
https://github.com/fangyidong/json-simple.git
synced 2025-12-06 07:20:53 +03:00
Updated Home (markdown)
10
Home.md
10
Home.md
@@ -1,4 +1,4 @@
|
||||
# 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
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
* 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]
|
||||
@@ -25,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 ||
|
||||
@@ -36,10 +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]
|
||||
|
||||
Reference in New Issue
Block a user