title: writing .json file and read that file in Android
body: <p>i m writing .json file and i want to read that file,
  but the problem is, when i try to read whole file as string it adds the space before and after every character and just because of extra chars it couldn't read json.</p>
  
  <p>the Json format is </p>
  
  <pre><code>[{"description1":"The ThinkerA bronze sculpture by Auguste Rodin. It depicts a man in sober\nmeditation battling with a powerful internal struggle.","description2":"Steve JobsFounder of Apple, he is widely recognized as a charismatic pioneer of\nthe personal computer revolution.","description3":"Justin BieberBorn in 1994, the latest sensation in music industry with numerous\nawards in recent years."}]
  </code></pre>
  
  <p>but it gives weired response like:
  [ { " d e s c r i p t i o n 1 " : " T h e .....</p>
  
  <p>to trim extra spaces i refered to this, but stil didnt work:
  <a href="https://stackoverflow.com/questions/2932392/java-how-to-replace-2-or-more-spaces-with-single-space-in-string-and-delete-lead">Java how to replace 2 or more spaces with single space in string and delete leading spaces only</a></p>
  
  <p>i m using this code</p>
  
  <pre><code>File folderPath = Environment.getExternalStorageDirectory();
  File mypath=new File(folderPath, "description.json");
  StringBuffer fileData = new StringBuffer(1000);
  BufferedReader reader = null;
  reader = new BufferedReader(new FileReader(mypath));
  char[] buf = new char[1024];
  int numRead=0;
  
  while((numRead=reader.read(buf)) != -1)
  {
      String readData = String.valueOf(buf, 0, numRead);
      fileData.append(readData);
      buf = new char[1024];
  }
  String response = fileData.toString();
  </code></pre>
  
  <p>the "response" string contains weird response</p>
  
  <p>so can anyone help me ?</p>
  
  <p>for writing into file ,i m using  :</p>
  
  <pre><code>FileOutputStream fos = new FileOutputStream(mypath);
  DataOutputStream dos = new DataOutputStream(fos);
  dos.writeChars(response);
  </code></pre>