Skip to content

Porting guide for users coming from orjson #642

Description

@jcrist

msgspec's performance is generally on par with that of orjson. For some schemas we're faster, for some orjson is faster. For common message schemas though things should be about the same.

There are some valid reasons a user might prefer to migrate from orjson to msgspec.json instead:

For most users that aren't passing additional config options to orjson, porting should be as straightforward as swapping calls to orjson.loads to msgspec.json.decode and orjson.dumps to msgspec.json.encode. For other options we generally have a corollary, but the spelling is different. A short porting/comparison guide might be useful here.

Activity

  1. added 2 commits that reference this issue on Apr 9, 2026
    a670c34
    09d0be1
  2. self-assigned this
    on Apr 12, 2026
  3. added a commit that references this issue on Apr 13, 2026
    0e29058
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions