diff --git a/json-smart/src/main/java/net/minidev/json/JSONArray.java b/json-smart/src/main/java/net/minidev/json/JSONArray.java index 1a1c257..981533a 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONArray.java +++ b/json-smart/src/main/java/net/minidev/json/JSONArray.java @@ -30,6 +30,13 @@ public class JSONArray extends ArrayList implements List, JSONAwareEx, JSONStreamAwareEx { private static final long serialVersionUID = 9106884089231309568L; + public JSONArray() { + } + + public JSONArray(int initialCapacity) { + super(initialCapacity); + } + public static String toJSONString(List list) { return toJSONString(list, JSONValue.COMPRESSION); } diff --git a/json-smart/src/main/java/net/minidev/json/JSONObject.java b/json-smart/src/main/java/net/minidev/json/JSONObject.java index ea585e0..0c29589 100644 --- a/json-smart/src/main/java/net/minidev/json/JSONObject.java +++ b/json-smart/src/main/java/net/minidev/json/JSONObject.java @@ -35,6 +35,10 @@ public JSONObject() { super(); } + public JSONObject(int initialCapacity) { + super(initialCapacity); + } + /** * Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters * (U+0000 through U+001F). It's the same as JSONValue.escape() only for