Closed SaravanaS1358 closed 3 years ago
I dont see any documentation on the front page for arrayFields. Can you provide an example? I'm hoping this will help with the issue of making only certain items an array vs "all or nothing". Thanks.
I would like this pr merged, I really need arrayFields
or some similar options.
see also https://github.com/Leonidas-from-XIV/node-xml2js/issues/210, https://github.com/Leonidas-from-XIV/node-xml2js/issues/489
I found another lib which supports this feature. See https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/docs/v4/2.XMLparseOptions.md#isarray.
Added arrayFields to enable array even if there is one value. This is to maintain the consistency of JSON structure