Pretty print the JSON if a web browser is requesting it.