Return object from REST client.