Fix bug for requests >= 1.0 where json is a method