blueloveTH 1 年之前
父节点
当前提交
eb35c33dd5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/json.c

+ 1 - 1
src/modules/json.c

@@ -53,7 +53,7 @@ static bool json__write_dict_kv(py_Ref k, py_Ref v, void* ctx_) {
     ctx->first = false;
     ctx->first = false;
     if(!py_isstr(k)) return TypeError("keys must be strings");
     if(!py_isstr(k)) return TypeError("keys must be strings");
     c11_sbuf__write_quoted(ctx->buf, py_tosv(k), '"');
     c11_sbuf__write_quoted(ctx->buf, py_tosv(k), '"');
-    c11_sbuf__write_char(ctx->buf, ':');
+    c11_sbuf__write_cstr(ctx->buf, ": ");
     return json__write_object(ctx->buf, v);
     return json__write_object(ctx->buf, v);
 }
 }