Fixed permissions json not being encoded to an object.
Fixed Save & Preview button not working on pending pages.