xml-js
xml-js copied to clipboard
Can I pass a callback to alwaysArray?
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?