Dag Wieers

Results 505 comments of Dag Wieers

BTW I noticed you are running as root, so in this case you probably need to touch /var/log/up2date I guess we can fix the code to create the file if...

I still like to keep this issue as a feature request.

So **xmljson** (this project) returns this: ```json { "person": [ { "age": 12, "height": 1.73 }, { "age": 12, "height": 1.73 } ] } ``` Or this when using `preserve_root=True`:...

BTW Looking at the examples at https://github.com/doekman/xml2json-xslt/tree/master/unittests your depiction of what **xml2json-xslt** returns is incorrect, it does not turn the root-element into an element named `root`.

> Root element seems to be preserved actually @AndreiPashkin Exactly, so [your example above](https://github.com/sanand0/xmljson/issues/40#issue-414480220) is incorrect. And the output is the same as **xmljson**.

> And in JSON you usually don't want to see `{"people": {"person": [...]}}` structure but `{"people": [...]}`. That seems very wrong. Why would someone want to see a sub-element (i.e....

> 1. Because why would you want to have people -> person structure? It is redundant. The redundancy is in the original data, why would a conversion remove a sub-element...

@techdragon We accept contributions ;-)

So you want to ignore namespaces. What if the same element is used in different namespaces, they would end up being the same.