aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/JsonExport/jsonexport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/JsonExport/jsonexport.cpp')
-rw-r--r--Plugins/JsonExport/jsonexport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/JsonExport/jsonexport.cpp b/Plugins/JsonExport/jsonexport.cpp
index 51fd60a..961169e 100644
--- a/Plugins/JsonExport/jsonexport.cpp
+++ b/Plugins/JsonExport/jsonexport.cpp
@@ -324,8 +324,8 @@ QString JsonExport::escapeString(const QString& str)
{
QString copy = str;
return "\"" +
- copy.replace("\"", "\\\"")
- .replace("\\", "\\\\")
+ copy.replace("\\", "\\\\")
+ .replace("\"", "\\\"")
.replace("/", "\\/")
.replace("\b", "\\b")
.replace("\f", "\\f")