Anki messes up my json; why?

Basically, yes. You can add an Id to locate the element more easily from JS, and then use something like

jsonString = document.getElementById('jsonField').textContent;
let x = JSON.parse(jsonString);

( keep in mind that you’ll need to change single quotes around 43% and 34% in your original string to double quotes as well)