SET @v = '{"a":" \\u3b7e - c:\\user\\abc - \\"ET\\" "}';
SET @j = CAST(@v AS JSON);
failed Error Code: 3141. Invalid JSON text in argument 1 to function cast_as_json: "Incorrect hex digit after \u escape in string." at position 18. because cast_as_json will try to decode '\user' which is not a escape character.
if it like this c:\\\\user\\\\abc, everything fine.
Tried SET @v = REPLACE(@v, '\\', '\\\\');, it will break other string escape.
Tried SET @v = CONVERT(@v USING ASCII);, No matter what charset, no different
Mysql rule '\\' -> '\', '\u3b7e' -> '㭾'. Json rule " -> " in string
I don't know how to solve this.
\\uis supposed to be literal versus starting a Unicode escape sequence.