Skip to content

remove simplejson#1766

Merged
davidism merged 1 commit into
masterfrom
remove-simplejson
Mar 19, 2020
Merged

remove simplejson#1766
davidism merged 1 commit into
masterfrom
remove-simplejson

Conversation

@davidism

Copy link
Copy Markdown
Member

In modern Python it's unlikely to be significantly better than the built-in json. The module used by JSONMixin is overridable, so users can plug it in again if they want.

See pallets/itsdangerous#146

In modern Python it's unlikely to be significantly better than the
built-in json module. The module used by JSONMixin is overridable, so
users can plug it in if they want.

See pallets/itsdangerous#146
@davidism davidism added this to the 2.0.0 milestone Mar 19, 2020
@davidism davidism merged commit 8a37c2f into master Mar 19, 2020
@davidism davidism deleted the remove-simplejson branch March 19, 2020 16:34
@aenglander

Copy link
Copy Markdown
Contributor

Will this be a BC break as simplejson takes bytes as keys and the built-in json does not?

@davidism

Copy link
Copy Markdown
Member Author

I had no idea simplejson did that. Wasn't the whole point of simplejson that it behaved like json? :-(

This is slated for 2.0, so I'm fine with it. If a project needs bytes keys and doesn't want to encode their data (which they should anyway since otherwise it's relying on the system encoding), they can do Request.json_module = simplejson (or wrap it a bit to support more types) and keep going.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants