I have array and converting that into json format by using json_encode($array),its working fine.but the problem the description field containg the html data and some special character is in this like(GapFree "-Version!).because of these special character json is not getting valid.but i need all data in description field also.
if i used pregmatch,all specailcharacter is escaping but description field data also removing.so how to avoid these special charater in my json data,so i can keep my data as well as json should be valid.
[{
"uniquenumber": "75642",
"Name": "moto e 6\/6S | ebony | rgb",
"Description": "\u003Cul\u003E\n\n\t\u003Cli\u003E\n\n\t\t\u003Cspan style=\"color: rgb(74, 74, 74); font-family: VodafoneRg, sans-serif; font-size: 16px;\"\u003ERobuster, schicker Schutz mit nur 7g Gewicht und einer Dicke von 0,3mm\u003C\/span\u003E\u003C\/li\u003E\n\n\t\u003Cli\u003E\n\n\t\t\u003Cspan style=\"color: rgb(74, 74, 74); font-family: VodafoneRg, sans-serif; font-size: 16px;\"\u003ENeue "
GapFree "-Version! - Nahtloser Übergang von Folie zum Case\u003C\/span\u003E\u003C\/li\u003E\n\n\t\u003Cli\u003E\n\n\t\t\u003Cspan style=\"color: rgb(74, 74, 74); font-family: VodafoneRg, sans-serif; font-size: 16px;\"\u003EKunststoff-Hülle mit Echtholz-Furnier und mattem Finish\u003C\/span\u003E\u003C\/li\u003E\n\n\t\u003Cli\u003E\n\n\t\t\u003Cspan style=\"color: rgb(74, 74, 74); font-family: VodafoneRg, sans-serif; font-size: 16px;\"\u003EDie T2PP-Technologie verbessert die Flexibilität und Widerstandsfähigkeit der Hülle\u003C\/span\u003E\u003C\/li\u003E\n\n\t\u003Cli\u003E\n\n\t\t\u003Cspan style=\"color: rgb(74, 74, 74); font-family: VodafoneRg, sans-serif; font-size: 16px;\"\u003EDie frische Optik des Cases unterstreicht das Design des neuen iPhone\u003C\/span\u003E\u003C\/li\u003E\n\n\t\u003Cli\u003E\n\n\t\t\u003Cspan style=\"color: rgb(74, 74, 74); font-family: VodafoneRg, sans-serif; font-size: 16px;\"\u003EInklusive zwei Displayschutzfolien für das schwarze und weiße iPhone\u003C\/span\u003E\u003C\/li\u003E\n\n\u003C\/ul\u003E\n",
"DAdd": "2016-07-13 13:57:37",
"DUpd": "2017-07-11 09:42:43"
}]