Stack Explorer

orjson

serialization

Fast and correct JSON library for Python written in Rust

10M/week ↑ Growing

Features

jsonserializationperformancerustparsing

Pros and Cons

Ventajas

  • + 10x faster than json stdlib
  • + Written in Rust
  • + Native dataclasses support
  • + Serializes datetime, UUID, numpy
  • + No Python dependencies
  • + Drop-in replacement

Desventajas

  • - JSON serialization only
  • - No configurable pretty print
  • - Platform-specific binaries
  • - Fewer format options
  • - No custom object deserialization

Use Cases

  • High-performance APIs
  • Massive JSON processing
  • FastAPI response serialization
  • Data pipelines
  • JSON caching
  • Microservices

Tecnologías Relacionadas