Héllo,

I did it, it wasn't that difficult actually.

the source is available @ https://github.com/amirouche/jsonir

there is example :
https://github.com/amirouche/jsonir/blob/master/example.py

What makes the implementation of __json__ awkward is the iterencode support
of simplejson that I kept. I'm wondering if it makes
sens to have such a feature, what do you think ?

I does not support multiple json representation of an object
out-of-the-box, one solution is to "__json__" hook a parameter of the
encoder.

I did not test it.

Cheers,

Amirouche
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to