I was trying to get a json in an javascript variable. I use fluid-templates in my extbase typo3-extension. In my action I load some json with curl. This json I assign to the template. In my template it looks like:
<script type="text/javascript">
var json = {jsonVarFromControllerAction};
</script>
In this case the json is interpreted as html-code. It looks like:
{"content":"testcontent"}
In the controller-action its an correct json!
{"content": "testcontent"}
Whats the solution?