Allow to build and generate json from JS page model