-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IsArray option isn't parsing tags with 0 as value correctly #490
Comments
I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it. |
Yes, the same issue for me. There is a function for it in code:
The problem is that You can check it with this xml:
and this option:
I see for now only one way to fix it:
|
fixed as part of 4.1.4 |
"fast-xml-parser": "^4.0.9"
It seems to be broken
Description
I'd like to use IsArray option, however, it seems to break on tags which have value 0 inside of them, such as
0
or0.0
. It is inconsistent with other numbers, interger or floats, that have non 0 value, as shown in my provided example.Input
Code
Output
expected data
Would you like to work on this issue?
The text was updated successfully, but these errors were encountered: