-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed generic serialization of objects/iterables
The behavior of ujson has always been to try to serialize all objects in any way possible. This has been quite a deviation from other json libraries, including Pythons standard json module, and the source of a lot of confusion and bugs. Removing this quirk moves ultrajson closer to the expected behavior. Instead of trying to coerce serialization ultrajson will now throw a TypeError: "repr(obj) is not JSON serializable" exception.
- Loading branch information
Showing
1 changed file
with
11 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters