Subject: | Elements that may appear more than once are NOT converted to Array properties |
Hello.
First of all thank you for your module.
I've made a web service with Atom Publishing Protocol, using
application/atom+xml data format. And now I want to add JSON data
format to it. So, I've found your module and thought it'd help me. But
after close look to it I've found some problems.
1) You don't convert properties that may appear more than once in the
Atom document to Array properties.
Please, consider the example at google's page "Using JSON in the Google
Data Protocol" (http://code.google.com/apis/gdata/docs/json.html). In
the XML version there is one author in the feed's content, but in the
JSON version it represents as Array of one element.
2) If the atom:content of atom:entry element contains XML data I'd like
to be able to parse it with XML Schema to get correct representation in
JSON, it's related with arrays again. Take a look at XML::Compile
module for that purpose.
What do you think about these problems?