# Deprecated API

## Contents

- Interfaces
- Classes
- Exception Classes
- Methods

Deprecated Interfaces
Interface
Description
org.json.simple.JSONAware
since 2.0.0, replaced by `Jsonable`
org.json.simple.JSONStreamAware
since 2.0.0, replaced by `Jsonable`
org.json.simple.parser.ContainerFactory
since 2.0.0 the same results can be achieved with the Map and Collection constructors in java post parsing.
org.json.simple.parser.ContentHandler
since 2.0.0 it doesn't extend the SAX ContentHandler promoting bad practices and incompatible code.

Deprecated Classes
Class
Description
org.json.simple.ItemList
since 2.0.0 all of the functionality provided by the class seems to be already provided in the JDK.
org.json.simple.JSONArray
since 2.0.0, replaced by `JsonArray`
org.json.simple.JSONObject
since 2.0.0, replaced by `JsonObject`
org.json.simple.JSONValue
since 2.0.0, replaced by `Jsoner`
org.json.simple.parser.JSONParser
since 2.0.0, copied to a new package `Jsoner`.
org.json.simple.parser.Yytoken
since 2.0.0, copied to a new package.

Deprecated Exception Classes
Exception Class
Description
org.json.simple.parser.ParseException
since 2.0.0, copied to a new package.

Deprecated Methods
Method
Description
org.json.simple.JsonArray.getEnum(int)
2.3.0 Jsoner deprecated automatically serializing enums as Strings.
org.json.simple.JsonObject.getBigDecimal(String)
2.3.0 in favor of `JsonObject.getBigDecimal(JsonKey)`
org.json.simple.JsonObject.getBigDecimalOrDefault(String, BigDecimal)
2.3.0 in favor of `JsonObject.getBigDecimalOrDefault(JsonKey)`
org.json.simple.JsonObject.getBoolean(String)
2.3.0 in favor of `JsonObject.getBoolean(JsonKey)`
org.json.simple.JsonObject.getBooleanOrDefault(String, boolean)
2.3.0 in favor of `JsonObject.getBooleanOrDefault(JsonKey)`
org.json.simple.JsonObject.getByte(String)
2.3.0 in favor of `JsonObject.getByte(JsonKey)`
org.json.simple.JsonObject.getByteOrDefault(String, byte)
2.3.0 in favor of `JsonObject.getByteOrDefault(JsonKey)`
org.json.simple.JsonObject.getCollection(String)
2.3.0 in favor of `JsonObject.getCollection(JsonKey)`
org.json.simple.JsonObject.getCollectionOrDefault(String, T)
2.3.0 in favor of `JsonObject.getCollectionOrDefault(JsonKey)`
org.json.simple.JsonObject.getDouble(String)
2.3.0 in favor of `JsonObject.getDouble(JsonKey)`
org.json.simple.JsonObject.getDoubleOrDefault(String, double)
2.3.0 in favor of `JsonObject.getDoubleOrDefault(JsonKey)`
org.json.simple.JsonObject.getEnum(String)
2.3.0 in favor of `JsonObject.getEnum(JsonKey)`
org.json.simple.JsonObject.getEnum(JsonKey)
2.3.0 Jsoner deprecated automatically serializing enums as Strings.
org.json.simple.JsonObject.getEnumOrDefault(String, T)
2.3.0 in favor of `JsonObject.getEnumOrDefault(JsonKey)`
org.json.simple.JsonObject.getEnumOrDefault(JsonKey)
2.3.0 Jsoner deprecated automatically serializing enums as Strings.
org.json.simple.JsonObject.getFloat(String)
2.3.0 in favor of `JsonObject.getFloat(JsonKey)`
org.json.simple.JsonObject.getFloatOrDefault(String, float)
2.3.0 in favor of `JsonObject.getFloatOrDefault(JsonKey)`
org.json.simple.JsonObject.getInteger(String)
2.3.0 in favor of `JsonObject.getInteger(JsonKey)`
org.json.simple.JsonObject.getIntegerOrDefault(String, int)
2.3.0 in favor of `JsonObject.getIntegerOrDefault(JsonKey)`
org.json.simple.JsonObject.getLong(String)
2.3.0 in favor of `JsonObject.getLong(JsonKey)`
org.json.simple.JsonObject.getLongOrDefault(String, long)
2.3.0 in favor of `JsonObject.getLongOrDefault(JsonKey)`
org.json.simple.JsonObject.getMap(String)
2.3.0 in favor of `JsonObject.getMap(JsonKey)`
org.json.simple.JsonObject.getMapOrDefault(String, T)
2.3.0 in favor of `JsonObject.getMapOrDefault(JsonKey)`
org.json.simple.JsonObject.getShort(String)
2.3.0 in favor of `JsonObject.getShort(JsonKey)`
org.json.simple.JsonObject.getShortOrDefault(String, short)
2.3.0 in favor of `JsonObject.getShortOrDefault(JsonKey)`
org.json.simple.JsonObject.getString(String)
2.3.0 in favor of `JsonObject.getString(JsonKey)`
org.json.simple.JsonObject.getStringOrDefault(String, String)
2.3.0 in favor of `JsonObject.getStringOrDefault(JsonKey)`
org.json.simple.JSONValue.parse(Reader)
this method may throw an `Error` instead of returning `null`; please use `JSONValue.parseWithException(Reader)` instead
org.json.simple.JSONValue.parse(String)
this method may throw an `Error` instead of returning `null`; please use `JSONValue.parseWithException(String)` instead