X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Remove the escaping of string while JSON.decode calling in developers toolbar.

Kuphostiwe

Remove the escape string in the return string.

Remove the escape string in the return string.
Ama-screenshot ananyekiwe

Okulungisiwe ngu httpsOmkar

Eminye Imininingwane Yohlelo

Fakela amapulagi

  • Shockwave Flash 32.0 r0

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Eminye Imininingwane

cor-el
  • Top 10 Contributor
  • Moderator
17687 izisombululo 160003 izimpendulo
Kuphostiwe

That is not possible in this case because the result shown in the Web Console is enclosed in quotation marks and quotes (") in the string need to be escaped. You would have to use a method that doesn't enclose like a prompt or alert to be able to see an unescaped string. When specifying the string you can use single quotes to avoid having to escape the quotes.

alert(JSON.stringify(JSON.parse('{"test":"test"}')));
alert(JSON.stringify(JSON.parse("{\"test\":\"test\"}")));
That is not possible in this case because the result shown in the Web Console is enclosed in quotation marks and quotes (") in the string need to be escaped. You would have to use a method that doesn't enclose like a prompt or alert to be able to see an unescaped string. When specifying the string you can use single quotes to avoid having to escape the quotes. <pre><nowiki> alert(JSON.stringify(JSON.parse('{"test":"test"}'))); alert(JSON.stringify(JSON.parse("{\"test\":\"test\"}"))); </nowiki></pre>