nashwaan/xml-js

i need help with this example!!!!! Help me XD

FernandoReynosoMartinez opened this issue · 2 comments

Is there a way to get this to completely remove tags like <example/> where there is never anything in the object? I don't care about reproducing the XML as I'm just converting a third party XML API into JSON so it is easier to work with. The API sends empty tags when there is no information for that datapoint but that leaves my JSON full of those keys like example: {} but I'd rather have example: null or just not have it at all.

Originally posted by @JamesCoyle in #53 (comment)

Help me

YYenZ commented

maybe use a regular expression?