JSON.stringify (Javascript) and json.dumps (Python) not equivalent on a list? : <p>In javascript:</p>

<pre><code>var myarray = [2, 3];
var json_myarray = JSON.stringify(myarray) // '[2,3]'
</code></pre>

<p>But in Python:</p>

<pre><code>mylist = [2, 3]
json_mylist = json.dumps(mylist) # '[2, 3]' &lt;-- Note the space
</code></pre>

<p>So the 2 functions aren't equivalent. It's a bit unexpected for me and a bit problematic when trying to compare some data for example.</p>

<p>Some explanation about it?</p>
