There are plenty of json libraries around now. Most of them even support customization for encoding arbitrary objects (such as Nevow's Elements). Nevow doesn't need to supply its own anymore.