DMGambone / JXON-Parser

Converts an XML document into a JSON object
7 stars 3 forks source link

JSON.stringify will not work with parsed XML element in IE8 #2

Open julkue opened 9 years ago

julkue commented 9 years ago

After parsing a XML file with JXON-Parser and trying to output the parsed object in IE8 with JSON.stringify the following error will come up: "TypeError: circular reference is not supported in the value argument.". This makes sense, since the Parser will create a #parent-element on each element. I don't see a use case for this. Is it necessary? How can I deactivate it for debug purposes?

DMGambone commented 9 years ago

Feel free to remove it and submit a change/pull request

On Jan 28, 2015, at 8:01 AM, Julian notifications@github.com wrote:

After parsing a XML file with JXON-Parser and trying to output the parsed object in IE8 with JSON.stringify the following error will come up: "TypeError: circular reference is not supported in the value argument.". This makes sense, since the Parser will create a #parent-element on each element. I don't see a use case for this. Is it necessary? How can I deactivate it for debug purposes?

— Reply to this email directly or view it on GitHub.