π€ What's the problem you're trying to solve?
Writing json in script tags is complicated.
β¨ What's your proposed solution?
Replace < with \x3C or \u003C in JSON strings as per 4.12.1.3 Restrictions for contents of script elements.
β Have you considered any alternatives or workarounds?
No response
π Any additional context?
No response