title: Replace double quotes with backslash plus double quotes within JSON
body: <p>Suppose I have this simple JSON:</p>
  
  <pre><code>{"test":"test"}
  </code></pre>
  
  <p>Now I want to convert it into the following format:</p>
  
  <pre><code>{\"test\":\"test\"}
  </code></pre>
  
  <p>I have found some of the solutions of replacing double quotes with backslash and double quotes but all those works on text format.</p>
  
  <p>I need to pass this kind of format to AWS SNS as message parameter.</p>