title: Jackson not escaping quotes in JSON
body: <p>I'm trying to put a json in a javascript file in java, but when I write the json to a string, the string doesn't appear to be a valid json for javascript; it is missing some escapes. (This is happening in a string in the json which I formatted as a faux json.)</p>
  
  <p>For example, this would be a valid json in my javascript file:</p>
  
  <pre><code>{
     "message": 
     "the following books failed: [{\"book\": \"The Horse and his Boy\",\"author\": \"C.S. Lewis\"}, {\"book\": \"The Left Hand of Darkness\",\"author\": \"Ursula K. le Guin\"}, ]"
  }
  </code></pre>
  
  <p>Here's what I get, though, where the double quotes aren't escaped:</p>
  
  <pre><code>{
     "message": 
     "The following books failed: [{"book": "The Horse and his Boy","author": "C.S. Lewis"}, {"book": "The Left Hand of Darkness","author": "Ursula K. le Guin"}, ]"
  }
  </code></pre>
  
  <p>I get the second result when I do this:</p>
  
  <pre><code>new ObjectMapper().writer().writeValueAsString(booksMessage);
  </code></pre>
  
  <p>But when I write it directly to a file with jackson, I get the first, good result:</p>
  
  <pre><code>new ObjectMapper().writer().writeValue(fileToWriteTo, booksMessage);
  </code></pre>
  
  <p>So why does jackson escape differently when writing to a file, and how do I get it to escape like that for me when writing to a string?</p>