In live server unwanted slashes appending to encoding JSON, wherever single quote present.
Actually i'm trying to do rename Number as Nu'mber, just adding a single in between.
PHP Version 5.3.21
Result: {"values":"Nu\\'mber","lastvalue":"Number"}
i.e. ' replaced with \\'
whereas in my local-server, its working perfectly
PHP Version 5.3.13
Result: {"values":"Nu'mber","lastvalue":"Number"}
Also, i used stripslashes(), but no use of it. in some cases, i have to reuse the result JSON if i do that, more slashes appended .is this PHP version problem?