This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author CT Radu
Recipients CT Radu
Date 2015-06-05.12:21:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433506908.4.0.832946693119.issue24387@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, json.loads expects a string as input and is expected to return a dictionary or raise an exception.

Proposal:
If the first argument of json.loads is a dictionary
return that dictionary, instead of raising a TypeError as it happens now.

There are some use cases where json.loads would be applied multiple times to the same object. Once the string has been parsed once, it shouldn't be reloaded.
History
Date User Action Args
2015-06-05 12:21:48CT Radusetrecipients: + CT Radu
2015-06-05 12:21:48CT Radusetmessageid: <1433506908.4.0.832946693119.issue24387@psf.upfronthosting.co.za>
2015-06-05 12:21:48CT Radulinkissue24387 messages
2015-06-05 12:21:47CT Raducreate