[MJ] Adding JSON support to the index routes for pages and rooms