擅长:python、mysql、java
<p>字符串中允许使用控制字符,如下所示</p>
<pre><code>json_str = json.loads(jsonString, strict=False)
</code></pre>
<p>你可以在<a href="https://docs.python.org/2/library/json.html" rel="noreferrer">docs for python 2</a>,或者<a href="https://docs.python.org/3/library/json.html" rel="noreferrer">the docs for python 3</a>中找到这个</p>
<blockquote>
<p>If strict is false (<code>True</code> is the default), then control characters will be allowed inside strings. Control characters in this context are those with character codes in the 0–31 range, including <code>'\t'</code> (tab), <code>'\n'</code>, <code>'\r'</code> and <code>'\0'</code>.</p>
</blockquote>