title: python3 - problem with parsing json after response data using (unirest)
body: <p>I'm making <code>HTTPSConnection</code> using <code>(Python)Unirest</code> and the response have charecters like <code>&quot;</code> , <code>\</code> and <code>\n</code> so I hard-coded my python code and finally i got the right response without any characters on console using <code>sys.stderr.write(data2)</code></p>
  <pre><code>    @router.get(&quot;/data&quot;, status_code=status.HTTP_200_OK)
      async def data_detail(type: str ):
          try:
              conn = http.client.HTTPSConnection(&quot;example.com&quot;)
              conn.request(&quot;GET&quot;, &quot;/test.php?type=&quot;+type)
              res = conn.getresponse()
              data = res.read()
              data2 = data.decode(&quot;utf-8&quot;)
              data2 = data2[1:-1]
              data2 = data2.replace(&quot;\\n&quot;, '')
              data2 = data2.replace(&quot;\\&quot;, '')
  
              res = {
                  &quot;status&quot;    :   &quot;OK&quot; ,
                  &quot;result&quot;    :   data2
                  }
              return JSONResponse(res)
          except Exception as e:
              raise HTTPException(status_code=400, detail=&quot;Error&quot;)
  </code></pre>
  <p>now when i return <code>data</code> to user the backslash <code>\</code> back again to the the data response</p>
  <p>the data i received from third party is :</p>
  <pre><code>&quot;{\&quot;list1\&quot;:[{\&quot;one\&quot;:\&quot;one\&quot;,\&quot;tow\&quot;:\&quot;tow\&quot;,\&quot;three\&quot;:\&quot;three\&quot;},{\&quot;test1\&quot;:\&quot;test1\&quot;,\&quot;test2\&quot;:\&quot;test2\&quot;,\&quot;test3\&quot;:\&quot;test3\&quot;},],\&quot;list2\&quot;:[]}\n&quot;
  </code></pre>
  <p>after replacing characters i got this on system console</p>
  <pre><code>{&quot;list1&quot;:[{&quot;one&quot;:&quot;one&quot;,&quot;tow&quot;:&quot;tow&quot;,&quot;three&quot;:&quot;three&quot;},{&quot;test1&quot;:&quot;test1&quot;,&quot;test2&quot;:&quot;test2&quot;,&quot;test3&quot;:&quot;test3&quot;}],&quot;list2&quot;:[]}
  </code></pre>
  <p>but when i add this data to final json response the backslashes back again to the output and all the data stored as one value in <code>result</code></p>
  <p><strong>any solution for this problem</strong></p>