convert result into JSONArray before storing it.