Used the json method instead of legacy json attribute.
Limited the requests's version be greater than 1.0.