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
Your writing code is the problem. Just use
FileWriter fos = new FileWriter(mypath); fos.write(response);