Skip to content

docs: replace deprecated ujson with orjson in example#12038

Open
thecaptain789 wants to merge 1 commit intoaio-libs:masterfrom
thecaptain789:docs-replace-ujson-with-orjson
Open

docs: replace deprecated ujson with orjson in example#12038
thecaptain789 wants to merge 1 commit intoaio-libs:masterfrom
thecaptain789:docs-replace-ujson-with-orjson

Conversation

@thecaptain789
Copy link

Fixes #10795

The ujson library has been deprecated and put into maintenance-only mode. This PR updates the client_quickstart documentation to use orjson instead.

Changes:

  • Replace ujson import with orjson
  • Add wrapper function to decode bytes to string (orjson.dumps returns bytes)
  • Update the note to describe orjson instead of ujson

@webknjaz webknjaz requested review from Dreamsorcerer and bdraco and removed request for asvetlov February 7, 2026 08:34
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 7, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing thecaptain789:docs-replace-ujson-with-orjson (da979dd) with master (4bb9e6e)

Summary

✅ 59 untouched benchmarks

@Dreamsorcerer
Copy link
Member

I would expect the .decode() call to lose any performance gains here. So, let's look at #11989 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ujson library mentioned in the documentation is deprecated

3 participants

Comments