3 ms·
JSON is mostly a strict subset of Python. That's not unexpected, but it makes me question how something like this actually happened. Your bug likely resulted fr
by bastawhiz 9y ago
JSON is mostly a strict subset of Python. That's not unexpected, but it makes me question how something like this actually happened. Your bug likely resulted from someone doing a `str(obj)` instead of `json.dumps(obj)`. Hardly the fault of JSON for being very similar to Python's default string serialization.
- gumby 9y agoThat is precisely what they did, yes, and some of the client code (e.g. JavaScript) DWIMed it (accepted it)