Serialize JSONArray instead of JSONObject.