title: Objective-C - How to convert NSString to escaped JSON string?
body: <p>I have a NSString that may contain quotes,\, /, \r, \n, and I want to convert it to a JSON encoded string so strings like this </p>
  
  <blockquote>
    <p>"text1\text2"</p>
  </blockquote>
  
  <p>becomes</p>
  
  <blockquote>
    <p>\"text1\\text2\"</p>
  </blockquote>
  
  <p>Is there a existing function to let me do this? </p>
  
  <p>Also, I am using SBJson in my project but I cannot find whether SBJson can do this or not.</p>
  
  <p>NSJSONSerialization is not on the table since my application still needs to support OSX 10.6</p>