Here is my string and I want to remove some characters from string. My code is below
"{ \"userpass\" : \"\", \"apikey\" : \"=\", \"deviceid\" : \"\", \"username\" : \"\"}"
and I want to convert into this format.
{
"userpass" : "",
"username" : "",
"deviceid" : "",
"apikey" : "="
}
How to remove \
from string to make JSON string proper?