Improved reporting of privacy and permissions to front end via JSON.