Closed ZStoner closed 1 year ago
@ZStoner,
Thanks for pointing out this issue. I will try to resolve it in release and will update you :)
Hi @ZStoner ,
Since the selected text to sort is converted to JavaScript object all the Unicode will be converted to it's character by default. To overcome this, I have given a fix which may not work for all the Unicode's.
I have added a new vscode sort setting sort-json.settings.preserveUnicodeString
. This helps to preserve the Unicode string.
Please use this with caution.
Please update the Sort JSON to version 15 Closing this ticket.
Thanks, Siva
I tried to do a sort on some JSON that contains strings with Unicode-escaped sequences. Note: The Unicode-escaped strings weren't part of any "Keys" used for the sort criteria.
Issues:
\u0000
escape sequences with their evaluated Unicode Character.\t
,\r
,\n
), may also get evaluated into an undesired character."\u0017"
, and sort converted it to a control symbol that fails JSON parsing.Sample JSON (before Sort):
Resulting JSON (after Sort Ascending):