You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
added a new function to escape properly json, fixes #3282
This commit is contained in:
@@ -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()+"\"";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user