title: Java : How to assign Json formated String to Java String?
body: <p>I have a big json string which i will be getting as a request from the UI , which will be converted to a String and parsed .</p>
  
  <p>I want to simulate the similar environment for testing locally  , so for this purpose i captured the JSon format.</p>
  
  <p>Currently i am manually adding  "/" to this big json string .</p>
  
  <p>Is there any other way to achieve this ??</p>
  
  <p>For example i got this json </p>
  
  <pre><code>{"age":29,"messages":["msg 1","msg 2","msg 3"],"name":"Preethi"}
  </code></pre>
  
  <p>and converted that into </p>
  
  <pre><code> String str = "{\"age\":\"29\",\"messages\":[\"msg 1\",\"msg 2\",\"msg 3\"],\"name\":\"mkyong\"}";
  </code></pre>
  
  <p>Is there any other way to achieve this ??</p>