I use JQuery to get Json data, but the data it display has double quotes. It there a function to remove it?
$(\'div#ListingData\').text(JSON.stringify(data.
Someone here suggested using eval() to remove the quotes from a string. Don't do that, that's just begging for code injection.
eval()
Another way to do this that I don't see listed here is using:
let message = JSON.stringify(your_json_here); // "Hello World" console.log(JSON.parse(message)) // Hello World