As the title says, I am looking to have the conversion from JSON to XML result in the exclusion of a tag for any JSON property which has an undefined value. For example, if the JSON in relevant part reads like so:
{ foo: undefined }
I am looking for a way to exclude the production of <foo></foo> or <foo/> tags.
Perhaps I misread the documentation but I don't see an option for doing so; or is it already built into the package?
As the title says, I am looking to have the conversion from JSON to XML result in the exclusion of a tag for any JSON property which has an
undefined
value. For example, if the JSON in relevant part reads like so:{ foo: undefined }
I am looking for a way to exclude the production of
<foo></foo>
or<foo/>
tags.Perhaps I misread the documentation but I don't see an option for doing so; or is it already built into the package?
Thanks in advance.