Simplified the resource class not to parse the object to json and to string all the time