-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single element array #26
Comments
are the source xml's |
Here's a quick fix at first glance. (How) would you like to integrate this behaviour ?
|
This is exactly the same issue i'm facing. I think, this problem is more related to the source file or the need for a xsd where the expected elements are described |
{
"commandes": {
"commande": [
{
},
{
}
]
}
} may be converted to xml <?xml version="1.0" encoding="UTF-8"?>
<commandes>
<commande></commande>
<commande></commande>
</commandes> |
I'm having the same issue with the Parker Convention -> No problem here, as how I found out, Parker is specified that way. There is though another convention 'Spark' that is similar to Parker, but treats single entries as lists. http://wiki.open311.org/JSON_and_XML_Conversion/ Perhaps someone could also provide 'Spark' Convention as an extension to xmljson? |
Hello,
great job with this python module !!
However, i came across a simple problem.
Say i wish to convert the following xml to json along yahoo convention
i get
{"commandes": {"commande": [{}, {}]}}
which is ok for me.
But if i convert the same xml with only one object
i get
{"commandes": {"commande": {}}}
which is Good but not the behavior I expect. I'd like to get the single element within an array as if several objects where present. That is to say :
{"commandes": {"commande": [{}]}}
Thanks
The text was updated successfully, but these errors were encountered: