Report question

Question: Is there a better way to switch between HTML and JSON output in Pyramid?