Héllo,<br><br>I did it, it wasn't that difficult actually.<br><br>the source is available @ <a href="https://github.com/amirouche/jsonir">https://github.com/amirouche/jsonir</a><br><br>there is example : <a href="https://github.com/amirouche/jsonir/blob/master/example.py">https://github.com/amirouche/jsonir/blob/master/example.py</a><br>

<br>What makes the implementation of __json__ awkward is the iterencode support of simplejson that I kept. I'm wondering if it makes<br>sens to have such a feature, what do you think ?<br><br>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.<br>

<br>I did not test it.<br><br>Cheers,<br><br>Amirouche<br>