improve json content type detection

Hi,

I am  using your package and think it is great. What I always wondered about is why it wasn't able to automatically parse a json response until I read the code. I replaced the json checker with a regular expression. I think that the same could be done for the xml detection as well.