Added resource operations.
If json parse fails, it is likely text and should be returned successfully.