Using Format and Indent on JSON file adds unicode entities
Posted: Tue May 24, 2022 6:16 pm
Hello,
When I use the "Format and Indent" function on a JSON file, XML editor is converting some characters into their Java unicode entities. For example the following original JSON content:
Is converted to this:
The characters ‘, ’, and – are converted into \u2018, \u2019, and \u2013 respectively. I cannot find any option in the preferences to disable this behaviour. Is this expected? Can this be disabled? I'm running build 2022041507 of version 24.1, with the default OpenJDK JRE on Windows 10 x64.
Thanks,
Marcin
When I use the "Format and Indent" function on a JSON file, XML editor is converting some characters into their Java unicode entities. For example the following original JSON content:
Code: Select all
{"status":"FOUND","doi":"10.1002/(SICI)1099-0739(199808/09)12:8/9<635::AID-AOC772>3.0.CO;2-J","citations":[{"doi":"10.1002/(SICI)1099-0739(199808/09)12:8/9<635::AID-AOC772>3.0.CO;2-J","style":"chicago-fullnote-bibliography","locale":"en-GB","text":"Minhas, R., D. S. Forsyth, and B. Dawson. ‘Synthesis and Characterization of Arsenobetaine and Arsenocholine Derivatives’. Applied Organometallic Chemistry 12, no. 8–9 (August 1998): 635–641. doi:10.1002/(sici)1099-0739(199808/09)12:8/9<635::aid-aoc772>3.0.co;2-j."}]}
Code: Select all
{
"status": "FOUND",
"doi": "10.1002/(SICI)1099-0739(199808/09)12:8/9<635::AID-AOC772>3.0.CO;2-J",
"citations": [
{
"doi": "10.1002/(SICI)1099-0739(199808/09)12:8/9<635::AID-AOC772>3.0.CO;2-J",
"style": "chicago-fullnote-bibliography",
"locale": "en-GB",
"text": "Minhas, R., D. S. Forsyth, and B. Dawson. \u2018Synthesis and Characterization of Arsenobetaine and Arsenocholine Derivatives\u2019. Applied Organometallic Chemistry 12, no. 8\u20139 (August 1998): 635\u2013641. doi:10.1002/(sici)1099-0739(199808/09)12:8/9<635::aid-aoc772>3.0.co;2-j."
}
]
}
Thanks,
Marcin