A bit of #Rust to speed up #Python API code! With FastAPI 0.131.0, if you declare the response model return type, Pydantic handles the JSON serialization in Rust.

https://fastapi.tiangolo.com/advanced/custom-response/#json-performance