revert to json