title: How To escape backslash in JSON object?
body: <p>I send a POST Request with JSON Objet in body to an application which is expecting this kind of value:</p>
  
  <pre><code>{
     "input": {
        "queryFilter": "mail eq \"john.doe@foo.de\""
     }
  }
  </code></pre>
  
  <p>The Request works fine and I get a response 200.</p>
  
  <p>Then I want to send the same Request via UI/Form and try to pass it as JSON Object as following:</p>
  
  <pre><code>input: {
      queryFilter: '"mail eq \"' + mail + '\" "'
  }
  </code></pre>
  
  <p>Which ends in: 
  <code>{input: {queryFilter: ""mail eq "john.doe@foo.de" ""}}</code></p>
  
  <p>This is syntactically not correct and not as the working JSON via Postman.
  Also trying it as: </p>
  
  <pre><code>input: {
      queryFilter: {
         mail: mail
      }
  }
  </code></pre>
  
  <p>didn't help.</p>
  
  <p>I have been checking some postings like: <a href="https://stackoverflow.com/questions/20207501/how-to-escape-backslash-in-javascript-object-literal">How to escape Backslash in Javascript object literal</a>, but they look handling other kind of issues
  So, how would it be possible to build the JSON Objet in the JavaScript file correctly so that it ends up exactly like the one working on Postman?</p>