In javascript:
var myarray = [2, 3];
var json_myarray = JSON.stringify(myarray) // '[2,3]'
But in Python:
import json
mylist = [2, 3]
json_mylist = json.dumps(mylist) # '[2, 3]' <-- Note the space
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.
Some explanation about it?