I have problem with json string in php. I have an app the get user contacts and send it to server and I process contacts in my way.
the problem is that some contacts name are very wired and some error occurred while using json_decode()
contacts like this
[
{"displayName":"Altin"'''''"''''"""""
\""\p chapar","phoneNumbers":[{"value":"0411*******"}]},
{"displayName":"A""""""basi","phoneNumbers":[{"value":"0914******"}]}
]
how can I clean this dirty json string to work properly?
I've tried to remove """
and \\//
but I saw a huge amount of errors
thanks