How can i clean this JSON String data ?. At first look it is very easy using str_replace method but its not. This JSON string is form JSON object that has spaces for ex . {" First Name ": "something"} . so when i converted this into json string the empty spaces replaced by unwanted strings(\u00a0) . I think this problem can be solve using preg_replace but the suddenly i dont know the regex for comma,double quote,colon. This characters is necessary for json string format. Please help me.
for example
{"AS_applicant_Data__c":
"{
\"Last Name\u00a0\":\"SDFSAD\",
\"First Name\u00a0\":\"SDFAFSDA\",
\"Middle Name\u00a0\":\"SAFDSAFD\",
\"Gender\u00a0\":\"Male\"
}"
}
to
{"AS_applicant_Data__c":"
"{
"Last Name":"SDFSAD",
"First Name":"SDFAFSDA",
"Middle Name":"SAFDSAFD",
"Gender":"Male"
}"
}