Hi,
I am trying to use json-lib 2.2.1 XMLSerializer.read(xmlString) to
convert xml text to json, similar to org.json.XML.toJSONObject(xmlString).
I see at least the following things missing in the json generated by
XMLSerializer:
1) the root element of the input xml is not included in the result json.
2) My input xml text which has nothing to do with json syntax, has multiple
"<features>" nodes, all these nodes seems be omitted while conversion. I
tried the options mentioned at
http://sourceforge.net/tracker/index.php?func=detail&aid=1813520&group_id=171425&atid=857931without
luck.
I am I missing something with this relatively simple usecase? Thanks for the
help.
-polapali
|