json.c: encode JSON strings the correct way (RFC 7159 section 7).
authorArt Cancro <ajc@citadel.org>
Fri, 3 Nov 2023 04:13:46 +0000 (19:13 -0900)
committerArt Cancro <ajc@citadel.org>
Fri, 3 Nov 2023 04:13:46 +0000 (19:13 -0900)
commit1158e6626314814cd66c74880738168bba8b32bc
tree084294162818d2d94e62b4f3d2bf17fdb5ac7fbb
parent4e037cf415c5f48647ddc37350c862084b07f03b
json.c: encode JSON strings the correct way (RFC 7159 section 7).

The previous code used the JavaScript encoder from the stringbuf library, which
is *not* the same encoding.  Now it doesn't make the browser's parser barf when
it encounters a control character.
libcitadel/lib/json.c