After the code implemented in this PR now we have the ability to publish content pages via JSON. For that a new method called JSONLayout.publishLayout has been implemented.
What to do
We need to identify when it makes sense to publish content pages via JSON. Maybe we can sear for "JSONLayout.addPublicLayout" in code and see if pages are published after that or search "PageEditor.clickPublish();" and check if it makes sense to change it for the new JSONLayout.publishLayout(
We replaced all content page detected into JSON calls