From 8686afecc3118b7ea1c50a2e9c402bc4e6e57719 Mon Sep 17 00:00:00 2001 From: wangtianyi2004 <376612600@qq.com> Date: Wed, 25 Dec 2024 20:42:21 +0800 Subject: [PATCH] Update JSON.md --- .../sql-manual/sql-data-types/semi-structured/JSON.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/versioned_docs/version-2.1/sql-manual/sql-data-types/semi-structured/JSON.md b/versioned_docs/version-2.1/sql-manual/sql-data-types/semi-structured/JSON.md index 4ce84debda6fd..c893e8a3e4ba7 100644 --- a/versioned_docs/version-2.1/sql-manual/sql-data-types/semi-structured/JSON.md +++ b/versioned_docs/version-2.1/sql-manual/sql-data-types/semi-structured/JSON.md @@ -56,6 +56,8 @@ 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"` + **Query:** - Directly select the entire JSON column: ```sql