How to outputs only the message without "\ from JSON.stringify?

I received this {“message”:“poubelle lourd”} from JSON.stringify and I wants to convert it into only poubelle lourd as output. How can I do that please?

Do you have to stringify the data? If you left it as an object you could just access the property.

I dunno, I’m using pusher to send data between pages and if I don’t stringify the message, it will not work

If you have the string and want the object, you can use JSON.parse.

I tried but I don’t know how but if you change the js of pusher where there is JSON.stringify, it won’t works

Add the code you’re struggling with to the question and we’ll take a look.

Sponsor our Newsletter | Privacy Policy | Terms of Service