Make the page and layer requests use the createRequestUrl method which does the json magic