summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 5a3d0012f0a..cd3b9cc0236 100644
--- a/src/json.c
+++ b/src/json.c
@@ -228,7 +228,7 @@ json_encode (Lisp_Object string)
{
/* FIXME: Raise an error if STRING is not a scalar value
sequence. */
- return code_convert_string (string, Qutf_8_unix, Qt, true, true, true);
+ return encode_string_utf_8 (string, Qnil, false, Qt, Qt);
}
static AVOID