added support for non-array response to GET method