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