Open GoogleCodeExporter opened 9 years ago
Could you please help ...
Original comment by eth...@gmail.com
on 1 Nov 2014 at 11:17
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
Hello Ethar,
I haven't had time to run through your example completely, but I do notice that
GeneratejSonSub you're creating a variable, ce, that appears to never get used:
var ce = GeneratejSonSub(elem, child );
json[rootName].push(child);
Is that intentional?
The library doesn't currently have an auto-generate from xml-to-json feature,
which I have considered adding but have not looked at yet. If the above tip
doesn't help I would suggest stepping through the code and seeing if your
recursive call is doing what you're expecting.
Also, I expect that you will run into a stack overflow eventually with a
recursive approach if the nesting gets too deep, and to my knowledge ECMA
currently doesn't support optimized tail recursion. So an iterative approach
might suit you better.
Regards
-Rody
Original comment by rody.cunningham@gmail.com
on 5 Nov 2014 at 5:10
Original issue reported on code.google.com by
eth...@gmail.com
on 1 Nov 2014 at 11:08