Closed Snooz82 closed 10 months ago
The problem was that the type hint str did convert everything to string. So a dictionary {'key': 'value'} does become "{'key': 'value'}" and this is then put to json.dumps That obviously is then not a js object anymore.
str
{'key': 'value'}
"{'key': 'value'}"
json.dumps
Added tests as well.
fixes #1843
The problem was that the type hint
str
did convert everything to string. So a dictionary{'key': 'value'}
does become"{'key': 'value'}"
and this is then put tojson.dumps
That obviously is then not a js object anymore.Added tests as well.