xml-js icon indicating copy to clipboard operation
xml-js copied to clipboard

Can I pass a callback to alwaysArray?

Open JamesCoyle opened this issue 6 years ago • 0 comments

I'm trying to convert XML files from a third party into JSON so it is easier for my apps to consume. For every array, the third party api puts 'Array' in the tag name of the parent (CustomerArray, CommentArray etc). Ideally I would like to check for this and always treat those tags as arrays as they are currently objects if only one item is defined. Is this possible or do I need to just modify the resulting JSON after conversion?

JamesCoyle avatar May 20 '19 15:05 JamesCoyle