restructured how JSON results to be passed around as a string rather than a JSONObject. Was causing a crash before.