diff --git a/docs/JSONCompilationDatabase.rst b/docs/JSONCompilationDatabase.rst
index bb008845ed271671e1c354545fd25766daf3b7ee..926dcba6a4aaeca7e903f4f7943d7f492347a157 100644
--- a/docs/JSONCompilationDatabase.rst
+++ b/docs/JSONCompilationDatabase.rst
@@ -57,7 +57,7 @@ Example:
 
     [
       { "directory": "/home/user/llvm/build",
-        "command": "/usr/bin/clang++ -Irelative -DSOMEDEF='\"With spaces and quotes.\"' -c -o file.o file.cc",
+        "command": "/usr/bin/clang++ -Irelative -DSOMEDEF=\"With spaces, quotes and \\-es.\" -c -o file.o file.cc",
         "file": "file.cc" },
       ...
     ]