Skip Menu |

This queue is for tickets about the Google-Data-JSON CPAN distribution.

Report information
The Basics
Id: 70336
Status: open
Priority: 0/
Queue: Google-Data-JSON

People
Owner: takeru.inoue+perl [...] gmail.com
Requestors: icestar [...] inbox.ru
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



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?
Sorry for my snail mail and thank you for letting me know the problems. I think these problems should be fixed, but unfortunately I have no time to do it. If you send a patch to fix it, they are pretty welcome. Regards,