title: Is there anything like JSON.stringify in Jackson?
body: <p>I find myself needing to <code>JSON.stringify(objectMapper.writeValueAsString(someJavaBean));</code> server side in Java as I make an HttpClient call to another service in our infrastructure.  Does Jackson have any such function?  Is there an easy way to do this without adding another dependency to my project?</p>
  
  <p>If it matters, we are Jackson 2.3.2.</p>
  
  <p>What I need to do is convert some JSON like</p>
  
  <pre><code>{ "first_name" : "Robert", "last_name" : "Kuhar" }
  </code></pre>
  
  <p>Into a Javascript String like</p>
  
  <pre><code>"{ \"first_name\" : \"Robert\", \"last_name\" : \"Kuhar\" }"
  </code></pre>
  
  <p>Its not as simple as Replace all the quotes with \", is it?  Like what happens if there are quotes embedded in the values?  Or some of the values are single quote delimited?  It seems like there should be a library call to do this.</p>
  
  <p>Any advice?</p>