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