KassieZ commented on code in PR #1611: URL: https://github.com/apache/doris-website/pull/1611#discussion_r1897608196
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-data-types/semi-structured/JSON.md: ########## @@ -55,6 +55,8 @@ INSERT INTO table_name(id, json_column_name) VALUES (1, '{"k1": "100"}') 13 [] 14 [123, 456] ``` +- 在 JSON 中出现转移符号 "\",如 `"\n"` 或 `"\t"` 时,在导入时需要通过 replace 函数将 `"\"` 替换为 `"\\"`,例如将 `"\n"` 替换为 `"\\n"` Review Comment: "\" 需要加行内代码 ########## docs/sql-manual/sql-data-types/semi-structured/JSON.md: ########## @@ -56,6 +56,9 @@ INSERT INTO table_name(id, json_column_name) VALUES (1, '{"k1": "100"}') 14 [123, 456] ``` +- When the all special character with '\' such as `'\r'`, `'\t'` appears in JSON, you need to use the replace function to replace `"\"` with `"\\"`, for example, you need replace `"\n"` to `"\\n"` Review Comment: please add code block for ‘\’ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org