1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00
A reference implementation of a JSON package in Java.
Find a file
Douglas Crockford 327e9a56fd Kim
2013-04-19 11:10:37 -07:00
CDL.java whitespace 2012-11-13 14:43:06 -08:00
Cookie.java Season's Greetings 2010-12-25 14:12:07 -08:00
CookieList.java Season's Greetings 2010-12-25 14:12:07 -08:00
HTTP.java AjayKemparaj: Tabs to spaces and minor java code fixups 2012-01-13 13:10:10 +05:30
HTTPTokener.java whitespace 2012-11-13 14:47:30 -08:00
JSONArray.java Disallow ; and => 2013-04-19 11:09:16 -07:00
JSONException.java javadoc 2013-02-19 04:50:52 -08:00
JSONML.java whitespace 2012-11-13 14:54:36 -08:00
JSONObject.java Disallow ; and => 2013-04-19 11:10:02 -07:00
JSONString.java whitespace 2012-11-13 14:56:55 -08:00
JSONStringer.java first commit 2010-12-21 10:51:19 -08:00
JSONTokener.java long 2012-02-16 20:50:04 -08:00
JSONWriter.java ?: 2011-11-24 07:40:50 -08:00
Kim.java Kim 2013-04-19 11:10:37 -07:00
README whitespace 2012-11-13 15:03:43 -08:00
XML.java entityify 2012-10-26 01:52:58 -07:00
XMLTokener.java whitespace 2012-11-13 14:39:02 -08:00

JSON in Java [package org.json]

Douglas Crockford
douglas@crockford.com

2011-02-02


JSON is a light-weight, language independent, data interchange format.
See http://www.JSON.org/

The files in this package implement JSON encoders/decoders in Java.
It also includes the capability to convert between JSON and XML, HTTP
headers, Cookies, and CDL.

This is a reference implementation. There is a large number of JSON packages
in Java. Perhaps someday the Java community will standardize on one. Until
then, choose carefully.

The license includes this restriction: "The software shall be used for good,
not evil." If your conscience cannot live with that, then choose a different
package.

The package compiles on Java 1.2 thru Java 1.4.


JSONObject.java: The JSONObject can parse text from a String or a JSONTokener
to produce a map-like object. The object provides methods for manipulating its
contents, and for producing a JSON compliant object serialization.

JSONArray.java: The JSONObject can parse text from a String or a JSONTokener
to produce a vector-like object. The object provides methods for manipulating
its contents, and for producing a JSON compliant array serialization.

JSONTokener.java: The JSONTokener breaks a text into a sequence of individual
tokens. It can be constructed from a String, Reader, or InputStream.

JSONException.java: The JSONException is the standard exception type thrown
by this package.


JSONString.java: The JSONString interface requires a toJSONString method,
allowing an object to provide its own serialization.

JSONStringer.java: The JSONStringer provides a convenient facility for
building JSON strings.

JSONWriter.java: The JSONWriter provides a convenient facility for building
JSON text through a writer.


CDL.java: CDL provides support for converting between JSON and comma
delimited lists.

Cookie.java: Cookie provides support for converting between JSON and cookies.

CookieList.java: CookieList provides support for converting between JSON and
cookie lists.

HTTP.java: HTTP provides support for converting between JSON and HTTP headers.

HTTPTokener.java: HTTPTokener extends JSONTokener for parsing HTTP headers.

XML.java: XML provides support for converting between JSON and XML.

JSONML.java: JSONML provides support for converting between JSONML and XML.

XMLTokener.java: XMLTokener extends JSONTokener for parsing XML text.