When using Content Negotiation, and the CoerceStupidBrowsers convention,...

... content is negotiated as HTML even when the browser requests json.  This fixes by adding an additional check for json.