summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/util.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 82611a561..ccc48a06d 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -967,7 +967,7 @@ function script json_encode {
.@json+=",";
// Input variable name
- .@json+=getarg(.@i)+": ";
+ .@json+="\""+getarg(.@i)+"\": ";
// Input variable value
if (isstr(getarg(.@i+1)))