title: Dataframe Row to JSON giving incorrect result
body: <p>I need to convert each row of DataFrame to JSON.</p>
  <p>Each row is converted to JSON by the following line of script:</p>
  <pre><code>data = df.loc[0].to_json()
  </code></pre>
  <p>Output:</p>
  <pre><code>{
      &quot;uid&quot;: &quot;1234&quot;,
      &quot;url&quot;: &quot;https:\\/\\/google.com&quot;,
      &quot;name&quot;: &quot;google.com&quot;,
      &quot;queries&quot;: [
          &quot;Query1&quot;,
          &quot;Query2&quot;,
          &quot;Query3&quot;
      ]
  }
  </code></pre>
  <p>Why is it not parsing the URLs properly?</p>
  <p>Ideally, the JSON format of the records should be like below, isn't it?</p>
  <pre><code>{
      &quot;uid&quot;: &quot;1234&quot;,
      &quot;url&quot;: &quot;https:\/\/google.com&quot;,
      &quot;name&quot;: &quot;google.com&quot;,
      &quot;queries&quot;: [
          &quot;Query1&quot;,
          &quot;Query2&quot;,
          &quot;Query3&quot;
      ]
  }
  </code></pre>
  <p>This is how the df looks:</p>
  <p><a href="https://i.stack.imgur.com/kCX4h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kCX4h.png" alt="enter image description here" /></a></p>