Two years’ worth of updates to my "XML to JSON [JS1]" #shortcut in one go! (I somehow forgot to publish them on RoutineHub.) 😅
• Support for empty elements and CDATA
• Optional attributes (@-prefixed keys)
• Optional numeric conversion to preserve leading zeros and precision
• Improved mixed-content handling
• Several bug fixes
Still just one line of #JavaScript!