added a new function to escape properly json, fixes #3282

This commit is contained in:
Juan Linietsky
2016-01-10 15:01:06 -03:00
parent 0b472764e4
commit 4fdab4f555
4 changed files with 23 additions and 1 deletions

View File

@ -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()+"\"";
}