deal with array responses on non-restful requests