diff --git a/mwclient/client.py b/mwclient/client.py index a954fdf2ca2e93376076317cca120b5deb4d9cb2..d1d58b3c3cc93b3d3549d8b47450b4cd2ed9f0fa 100644 --- a/mwclient/client.py +++ b/mwclient/client.py @@ -415,7 +415,7 @@ class Site(object): http_method=http_method) try: - return json.loads(res) + return json.loads(res, object_pairs_hook=OrderedDict) except ValueError: if res.startswith('MediaWiki API is not enabled for this site.'): raise errors.APIDisabledError