passing json to private pages