Last active
January 26, 2017 19:40
-
-
Save MFAnderson/5a92a1b013e2c555c4ca044eb4a8d88a to your computer and use it in GitHub Desktop.
json to xml is hard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 'foo': { 'bar': 'baz', 'qux': true } } | |
can be any of | |
<foo> | |
<bar>baz</bar> | |
<qux>true</qux> | |
</foo> | |
------ | |
<foo bar="baz"> | |
<qux>true</qux> | |
</foo> | |
------ | |
<foo bar="baz" qux="true" /> | |
------- | |
other challenges: arrays, empty XML elements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment