Custom loot table nesting issue.

So I am making a custom loot table and am attempting to add a nested loot table at the end of the main loot table, when I test them separately they BOTH work but when I try to nest it... it blows up. I am trying to nest this because I want to add legendary items in the future and I want all my custom chests to update without having to update every custom chest separately, been at this for like 20+ hours and am driving myself insane. Json is valid loot tables seem valid but nesting causes itself to blow up, im just about to give up and add the nested file to it manually (like 2k lines)

Continue to help post