Fixed a bug in returning method instead of JSON data on new requests lib