JSON5 bug fix: Escape double-quotes that occur inside of single-quoted strings.

[forum:/forumpost/ddcad3e884|Forum post ddcad3e884].

FossilOrigin-Name: 1c98d46d60ef1494bd8b7561c7d0cd5aafc178201a6f1f0da25dea6140b91cd0
This commit is contained in:
drh
2023-11-09 01:54:26 +00:00
parent b494366370
commit c060b5f3a8
4 changed files with 20 additions and 9 deletions
+5
View File
@@ -300,5 +300,10 @@ do_execsql_test 12.4 {
|| ' "xyz"}')->>'a';
} xyz
# 2023-11-08 forum/forumpost/ddcad3e884
#
do_execsql_test 13.1 {
SELECT json('{x:''a "b" c''}');
} {{{"x":"a \"b\" c"}}}
finish_test