Python/Orjson/Recipe
Last update
Jul 24, 2024
This recipe is a set of codemods that will upgrade json to orjson in your python projects.
The recipe includes the following codemods:
- python/orjson/json.dumps
- python/orjson/json.load
- python/orjson/json.loads
- python/orjson/dumps-add-UTC_Z
- python/orjson/sentry-import-replacement
import orjsonraw_data = orjson.loads(dist_matched_artifact_index_release_file.file.getfile().read())orjson.dumps(content_as_json, option=orjson.OPT_UTC_Z)raw_data = orjson.loads(data)
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community