Hi,
I'm implementing the Badgerfish JSON writer these days.The
JSON writer should process the generated axiom object model and
writer is responsible to
process it and generate the relevent JSON string. Since there is no inline
converstion from XML (or axiom
om) to JSON we have to have some sort of a algorithmn to write the xml
as well. I got few issues when processing the XML. For example,
<book>
<author>Abc</author>
<author>Cde</author>
<author>Efg </author>
</book>
( relevent JSON goes as a JSON array {"book": [{"$":"Abc"}, {"$":"Cde"}
.....] }
In order to process this xml and generate JSON
we need some kind of a look ahead and then process the axiom object model.
Thanks
Kasun