You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a bug when parsing 0 values from an array like this from xml: <values><value>1</value><value>0</value><value>2</value></values> which ends up in a json object like: values: [1, 2]
Hopefully that'd be easy to fix.
The text was updated successfully, but these errors were encountered:
This affects version 0.1.1 (which is effectively the current stable version). It's also more general than <xs><x>0</x><x>1</x></xs>. It affects any element with the text content 0. Such elements will be parsed as {_exists: false} in the resulting object.
But I don't think you can open a pull request against a tag Github, and this bug no longer exists in master.
I think the 0.1.1 branch is important because it's the only one that you can use in any context where you have a plain JavaScript runtime without relying on native code.
Hi,
There seems to be a bug when parsing 0 values from an array like this from xml:
<values><value>1</value><value>0</value><value>2</value></values>
which ends up in a json object like:values: [1, 2]
Hopefully that'd be easy to fix.
The text was updated successfully, but these errors were encountered: