JSON.parse () it is necessary to enclose the matrix fields within double quotes, that's why I have to use single quotes for the enclosure of the HTML attribute. The output should look like this:
But somewhere in the process, Drupal replaces the single quotes with double quotes, changing the output to:
What is apparently badly formatted.
My question is: why does this happen, where does it occur and is there an alternative solution?
I know it would be a much cleaner approach to write a custom field of views. But, again, this feels a bit like an exaggeration.