How to configure fast-xml-parser for consistent array outputs? #660
Unanswered
patryk-smc
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'm assuming that you must be using v4 of the parser. Have you tries |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I've been using FXP for quite some time and I love it, thank you for all the work that you put in.
I started struggling with the arrays, especially in situations where array size is 0 or 1.
If it is 0 - it is parsed as an empty string.
If it is 1 - it is parsed as an object.
If it is more than 1 - it is parsed as an array
Would it be possible to pass
any_name
as an option to tell the parser that this jPath should be always parsed as array?Beta Was this translation helpful? Give feedback.
All reactions