changed sample page to return json