repaired parsing received package to JSONArray