Minor fix for json arrays with a single item; did not realize accumlate only creates JSONObject with single entry