Add generic method to find out if the user specifically asked for json data
Add generic method to find out if the user specifically asked for json data

By default we want to return HTML but if the user specifically requests
json this method will tell us so.

fedora-infra/python-fedora