transforming into object if mime type is application/json