Home » Java » I want to remove the quotes from the response of a rest API in java [on hold]

I want to remove the quotes from the response of a rest API in java [on hold]

Posted by: admin October 23, 2018 Leave a comment

Questions:

This is the response of my rest API in java:-

“200|name={say:press 1 for Ashima khan, press 2 for Pawan goel, press 3 for ANIL SHETTY, press 4 for Amit Verma};dob={say: press 1 for 10/12/1978, press 2 for 15/08/1983, press 3 for 14/12/1994, press 4 for 18/03/1984};policy={say:471861010};pending={say:Policy Active};amt={say:4444.00}”

And I want to remove the first and last " characters, to get the response like:

200|name={say:press 1 for Ashima khan, press 2 for Pawan goel, press 3 for ANIL SHETTY, press 4 for Amit Verma};dob={say: press 1 for 10/12/1978, press 2 for 15/08/1983, press 3 for 14/12/1994, press 4 for 18/03/1984};policy={say:471861010};pending={say:Policy Active};amt={say:4444.00}

How I can do it?

Answers: