returned JSONArray
added code to escape JSON strings