|
Thanks for the great code. The usage on http://goessner.net/download/prj/jsonxml/ suggests that tab is optional for both functions.
If you omit the tab argument in xml2json, you get "undefined" prepended to your json. Perhaps the return was supposed to be something like:
return "{\n" + (tab ? tab + json.replace...
instead of
return "{\n" + tab + (tab ? json.replace...
Thanks again.
|