JSON is the first mp3tag proper WSS parser.
I managed to convert XML to JSON by only using regular expressions.
It covers all complex structures, attributes, comments, CDATA, namespaces.
And yes, it is written from scratch.
One thing convertor cannot know is if XML tags with single appearance are subject to array.
<disc number="1"> <track number="1">Innuendo</track> <track number="2">One vision</track> </disc>
Both disc and track are array elements but only track appears multiple times.
There is a solution for this:
- Convert everything to array
- Pass the script the list of array tags
I attach two pairs of XML-JSON files (pretty printer applied to all 4 files in notepad++).
Queen_Platinum_Collection.xml (9.73 KB)
Pink_Floyd_Discovery.xml (30 KB)
Queen_Platinum_Collection.json.txt (14.4 KB)
Pink_Floyd_Discovery.json.txt (50.9 KB)