Aalexbit-codemod

json-response-to-orjson-response

No description available

python
Public
4 executions
Run locally
npx codemod json-response-to-orjson-response
Documentation

This custom codemod replaces JSONResponse with ORJSONResponseto bring consistency to the way we handle JSON responses in our codebase. Besides updating the response class, it also updates the imports to use from src.json_encoding import ORJSONResponse.

Ready to contribute?

Build your own codemod and share it with the community.