title: Save valid JSON to wordpress post content with slashes (escaped html) through wp_insert_post
body: <p>I have a JSON string that has html properly striped with slashes. </p>
  
  <pre><code>{
    "sections": [
      {
        "section_name": "Objective",
        "data": "&lt;span style=\"font-weight: bold;\"&gt;Test&lt;/span&gt;",
        "key": "ref"
      }
    ]
  }
  </code></pre>
  
  <p>Now i am trying to insert this json string to worpdres post content through wp_insert_post</p>
  
  <pre><code>$data = '{"sections":[{"section_name":"Objective","data":"&lt;span style=\"font-weight: bold;\"&gt;Test&lt;/span&gt;","key":"ref"}]}';
      $new = array(
                  'post_title'    =&gt; $title,
                  'post_content'  =&gt; $data,
                  'post_author'    =&gt; $userid,
                  'post_status'   =&gt; 'pending',
                  'post_type' =&gt; 'post'
                );
           $id = wp_insert_post($new );
  </code></pre>
  
  <p>Now in the inserted post, I see the slashses are automatically removed.  </p>
  
  <p>So when i get the post content, it becomes invalid JSON.</p>
  
  <p>However i could directly save the valid JSON through wordpress admin, or to mysql database through phpmyadmin. It works as expected. </p>
  
  <p>How could i save valid JSON to wordpress post content with slashes (escaped html)</p>