summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-10 15:01:06 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-10 15:01:06 -0300
commit4fdab4f555f3f7e1d3b070244d88ce18c3282a15 (patch)
tree7e59911091c01739af3658764850cca24878dff1 /core/io
parent0b472764e47dfcf2484ffcdcfbe4a7c9c037de23 (diff)
added a new function to escape properly json, fixes #3282
Diffstat (limited to 'core/io')
-rw-r--r--core/io/json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/json.cpp b/core/io/json.cpp
index 45a97ed720..f9a8638d06 100644
--- a/core/io/json.cpp
+++ b/core/io/json.cpp
@@ -86,7 +86,7 @@ String JSON::_print_var(const Variant& p_var) {
s+="}";
return s;
};
- default: return "\""+String(p_var).c_escape()+"\"";
+ default: return "\""+String(p_var).json_escape()+"\"";
}