byCodemod

Python/Orjson/Json.Dumps

/icons/calendar.svg

Last update

Jul 24, 2024

This codemod converts json.dumps to orjson.dumps().decode(). Should be run before the orjson.dumps-add-UTC_Z codemod.

Example

Before

raw_data = json.load(dist_matched_artifact_index_release_file.file.getfile())

After

raw_data = orjson.loads(dist_matched_artifact_index_release_file.file.getfile().read())

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now