Quantcast
Channel: json_encode adding unwanted slashes - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Andy for json_encode adding unwanted slashes

You are running JSON_encode on JSON - this is why the double escaping occurs. Try this: $savedVal['id'] = 5 ; $savedVal['object_str'] = json_decode( '{"field":"City","term":"Hawaiian Gardens, CA"}' );...

View Article



json_encode adding unwanted slashes

I have a json string saved in my db. When i retrieve it from db to pass it to the javascript function (ajax call) , along with the id of that row, i am json_encoding both (the query result array) and...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images