Stay organized with collections
Save and categorize content based on your preferences.
org.json
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# org.json\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\norg.json\n========\n\nClasses\n-------\n\n|--------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [JSONArray](/reference/org/json/JSONArray) | A dense indexed sequence of values. |\n| [JSONObject](/reference/org/json/JSONObject) | A modifiable set of name/value mappings. |\n| [JSONStringer](/reference/org/json/JSONStringer) | Implements [JSONObject.toString](/reference/org/json/JSONObject#toString()) and [JSONArray.toString](/reference/org/json/JSONArray#toString()). |\n| [JSONTokener](/reference/org/json/JSONTokener) | Parses a JSON ([RFC 4627](http://www.ietf.org/rfc/rfc4627.txt)) encoded string into the corresponding object. |\n\nExceptions\n----------\n\n|----------------------------------------------------|-------------------------------------------------|\n| [JSONException](/reference/org/json/JSONException) | Thrown to indicate a problem with the JSON API. |\n\n-\n\n Classes\n -------\n\n - [JSONArray](/reference/org/json/JSONArray)\n - [JSONObject](/reference/org/json/JSONObject)\n - [JSONStringer](/reference/org/json/JSONStringer)\n - [JSONTokener](/reference/org/json/JSONTokener)\n-\n\n Exceptions\n ----------\n\n - [JSONException](/reference/org/json/JSONException)"]]