implemented pages json support