fix when no params specified in API request
returning json array instead of object