converting xml to json: self-closing tag
See original GitHub issueHi,
I’m working with this nice lib to convert xml/json data and run into some problem with the “-self-closing” : “true” result, if the source xml node is like <nodename />
.
to be honest: I didnt studied the code now and I’m not a java expert. But it seems, that there is no way to deactive the value “self-closing” with e.g. an argument?! Is such a feature planned?
May I ask you, why you add these self-closing feature? IMO I dont understand why to set an object with this value. I run into trouble with my frontend webapp with the resulting json I get with this lib. Dont you agree that something like { "nodename" : null }
is more the result to expect?
Also I dont think that the current integration is 100% json correct. your self-closing : “true” is set as string instead of boolean.
Would be great to hear about what you think, if there are any easy workarounds or sth similar. Thx in advance!
BR
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Thx a lot. Checked new mode function. Works like a charm. Bye thumbs up
@DubZyy The link to binary jar file. https://repo1.maven.org/maven2/com/github/javadev/underscore/1.49/underscore-1.49.jar