I attempted the following code snippet:
console.log(JSON.stringify({ test: "\u30FCabc" }));
The result is as follows:
'{"test":"ーabc"}'
We are aware that primarily, the JSON.stringify()
method converts a JavaScript object or value into a JSON string. According to the JSON standard (https://www.json.org/json-en.html), we should be able to store \u30FC
. So why does "\u30FC"
get converted to "ー"
?