Python/Orjson/Json.Load
Codemod verified
Official codemod published by a verified account. Learn more.
This codemod converts json.load to orjson.loads. Adds .read()
to the file object.
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