json data requests should look at media_type() since not all browsers
send the same content_type