title: converting JSON to string in Python
body: <p>I did not explain my questions clearly at beginning.
  Try to use <code>str()</code> and <code>json.dumps()</code> when converting JSON to string in python.</p>
  <pre><code>&gt;&gt;&gt; data = {'jsonKey': 'jsonValue',&quot;title&quot;: &quot;hello world&quot;}
  &gt;&gt;&gt; print json.dumps(data)
  {&quot;jsonKey&quot;: &quot;jsonValue&quot;, &quot;title&quot;: &quot;hello world&quot;}
  &gt;&gt;&gt; print str(data)
  {'jsonKey': 'jsonValue', 'title': 'hello world'}
  &gt;&gt;&gt; json.dumps(data)
  '{&quot;jsonKey&quot;: &quot;jsonValue&quot;, &quot;title&quot;: &quot;hello world&quot;}'
  &gt;&gt;&gt; str(data)
  &quot;{'jsonKey': 'jsonValue', 'title': 'hello world'}&quot;
  </code></pre>
  <p>My question is:</p>
  <pre><code>&gt;&gt;&gt; data = {'jsonKey': 'jsonValue',&quot;title&quot;: &quot;hello world'&quot;}
  &gt;&gt;&gt; str(data)
  '{\'jsonKey\': \'jsonValue\', \'title\': &quot;hello world\'&quot;}'
  &gt;&gt;&gt; json.dumps(data)
  '{&quot;jsonKey&quot;: &quot;jsonValue&quot;, &quot;title&quot;: &quot;hello world\'&quot;}'
  &gt;&gt;&gt; 
  </code></pre>
  <p>My expected output: <code>&quot;{'jsonKey': 'jsonValue','title': 'hello world''}&quot;</code></p>
  <pre><code>&gt;&gt;&gt; data = {'jsonKey': 'jsonValue',&quot;title&quot;: &quot;hello world&quot;&quot;}
    File &quot;&lt;stdin&gt;&quot;, line 1
      data = {'jsonKey': 'jsonValue',&quot;title&quot;: &quot;hello world&quot;&quot;}
                                                            ^
  SyntaxError: EOL while scanning string literal
  &gt;&gt;&gt; data = {'jsonKey': 'jsonValue',&quot;title&quot;: &quot;hello world\&quot;&quot;}
  &gt;&gt;&gt; json.dumps(data)
  '{&quot;jsonKey&quot;: &quot;jsonValue&quot;, &quot;title&quot;: &quot;hello world\\&quot;&quot;}'
  &gt;&gt;&gt; str(data)
  '{\'jsonKey\': \'jsonValue\', \'title\': \'hello world&quot;\'}'
  </code></pre>
  <p>My expected output: <code>&quot;{'jsonKey': 'jsonValue','title': 'hello world\&quot;'}&quot;</code></p>
  <p>It is not necessary to change the output string to json (dict) again for me.</p>
  <p>How to do this?</p>