title: JSON escape characters using json.stringify() in Karate Scenarios
body: <p>I would like to convert each request to the following format before the request is sent. </p>
  
  <pre><code>"Store": {
  "Tesco": "1284756",
      "Sainsburys": "37384657",
      "Asda": "1234567"
  }
  
  </code></pre>
  
  <p>I believe that we can use something like <code>JSON.stringify({"Store": {"Tesco": "1284756","Sainsburys": "37384657","Asda": "1234567"}}).replace(/[\"]/g, '\\\"');</code> to convert the string. </p>
  
  <p>How can we use this in Karate to convert each request into the following format: </p>
  
  <pre><code>\"Store\": {\n\"Tesco\": \"1284756\",\n    \"Sainsburys\": \"37384657\",\n    \"Asda\": \"1234567\"\n}\n
  </code></pre>
  
  <p>I would also like to treat the response and revert it back to the following format? </p>
  
  <pre><code>"Store": {
  "Tesco": "1284756",
      "Sainsburys": "37384657",
      "Asda": "1234567"
  }
  </code></pre>