I use Jackson to generate JSON objects and write them directly into HTML's tag, like this:
<script>
var data = $SomeJacksonWrapper.toJson($data);
</script>
This code breaks if some string contains '</script>' in it. Escaping forward slash (/) would solve the problem and it is alowed by JSON's spec.
How do I enable it in Jackson?