title: Single Quote Doesnt working while pass data to json in android
body: <p>I am working on application in which I need to pass all the data send to server via json array at exact user had passed.</p>
  
  <p>But My problem is When I pass Single quote message doesn't send to server.</p>
  
  <p>I had tried.</p>
  
  <pre><code>text=text.replaceAll("'","\'");
  </code></pre>
  
  <h2>But My problem is</h2>
  
  <ol>
  <li>When user press single quote message doesn't send.</li>
  <li>When user press single quote two time only one single quote is send.</li>
  </ol>
  
  <p>Please give solution for that.</p>