I am using the import plugin to import the contents of json files into pages.
In order for the json to render fully I am having to escape, as per the twig docs at https://twig.symfony.com/doc/2.x/filters/escape.html
{{ page.header.imports.ex_config|json_encode(constant('JSON_PRETTY_PRINT')) | escape }}
This is giving me a problem in that the urls, html and xml which is included in the json is now being rendered with unwanted escape characters, for example a url is being rendered with unwanted backslashes:
"serverPublicAddress": "http:\/\/127.0.0.1:8000",
Is there any way around this? Is it possible to customize the escape strategy to prevent it happening?