Handle response type of object or array
Server