Hi,<br>for a project I&#39;m working on, I need to be able to send JSON-encoded<br>objects on a network connection. I though that extending the<br>xml_[io]archive classes could do the trick, given that JSON, just like<br>xml, is based on representing an object by a collection of NVPs<br>
(name-value pairs). However, I was unable to find an explication on<br>_how_ to extend that class, and I lost myself very quickly  when I tried<br>to follow the code in the source.<br><br>Thus I&#39;m wondering...<br><br>
First, should I actually modify xml_[io]archive or should I extend<br>text_[io]archive by adding serialization of NVPs?<br><br>If, as I think, the right way  is to extend text_[io]archive, and more<br>so if I should actually extend/modify  xml_[io]archive, does anyone have<br>
suggestion on how to do that?<br><br>Even better, does anyone have a JSON serializer I could use in a<br>(*commercial*) project?<br><br>Thanks a lot for your help<br clear="all"><br>-- <br>Leo Cacciari<br><br>Aliae nationes servitutem pati possunt. Populi Romani est propria libertas.<br>


