Author Daniel Ward
Recipients Daniel Ward, Ollie Ford, abarry, steven.daprano
Date 2016-06-21.14:47:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466520450.91.0.458526850149.issue27362@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think I explained the response very well, effectively the __json__ call would return an object which is JSON-serializable. This would include dict objects containing JSON-serializable objects albeit natively-supporting JSON serialisation or by means of subsequent obj.__json__ calls.

The reason I gave it __json__ is purely for easily-remembered implementation, separating it out from calls which may potentially clash with existing codebases, because let's face it, people don't often get to start again ;)

I'm not adverse to changing the method name at all, but I do believe this is a progressive way to go regarding JSON-serialization.
History
Date User Action Args
2016-06-21 14:47:30Daniel Wardsetrecipients: + Daniel Ward, steven.daprano, abarry, Ollie Ford
2016-06-21 14:47:30Daniel Wardsetmessageid: <1466520450.91.0.458526850149.issue27362@psf.upfronthosting.co.za>
2016-06-21 14:47:30Daniel Wardlinkissue27362 messages
2016-06-21 14:47:30Daniel Wardcreate