Browse Source

fix a bug

blueloveTH 2 years ago
parent
commit
bb75341c49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pocketpy.h

+ 1 - 1
src/pocketpy.h

@@ -979,7 +979,7 @@ inline void init_builtins(VM* _vm) {
         for(auto& item : self.items()){
         for(auto& item : self.items()){
             if(!first) ss << ", ";
             if(!first) ss << ", ";
             first = false;
             first = false;
-            Str key = CAST(Str&, item.first).escape();
+            Str key = CAST(Str&, item.first).escape(false);
             Str value = CAST(Str&, vm->py_json(item.second));
             Str value = CAST(Str&, vm->py_json(item.second));
             ss << key << ": " << value;
             ss << key << ": " << value;
         }
         }