title: Join a json String values with new line
body: <p>I need to return json array each element in new line. but instead it's printing in one line. I tried using '/n' and space but it's not working.</p>
  
  <pre><code>String json = null;
  //split cookie with delimiter to store in array
  String wl[] = wishList.split("~");
  
  //JSON RETURN VALUE
  json = "[\"";
  for(int i = 0; i &lt; wl.length; ++i) {
      json +=  wl[i];
      //tried but didn't work
      //json.split("\n");
  }
  json += "\"]";
  System.out.println(json);
  </code></pre>
  
  <p>so i tried cancatinating in for loop but it didn't work. 
  I need out like this </p>
  
  <pre><code>1.abc
  2.bcd
  3.efg
  </code></pre>
  
  <p>but i'm getting this output</p>
  
  <pre><code>1.abcbcdefg
  </code></pre>