JSONArray is initialized with an initial size of 10, but if I know in advance that I have hundreds of elements, a new constructor with an initial size can avoid lots of arraycopy under the hood.
Conversely, if I know I have less than 10 items, it could save memory.
Idem for JSONObject