Finished the very ugly but hopefully functional XML to JSON TC1 to TC2 converter.