A fast JSON:API serializer for Ruby objects, forked from Netflix/fast_jsonapi.
JSON:API Serializer is a Ruby library for converting Ruby objects into JSON:API-compliant JSON documents. It solves the problem of efficiently serializing complex object graphs with relationships, attributes, and metadata according to the JSON:API specification. The library is a fork of Netflix's fast_jsonapi, maintained by the community to ensure ongoing development and support.
Ruby developers building JSON:API-compliant APIs, particularly those using Rails or other Ruby web frameworks who need high-performance serialization with support for relationships, caching, and sparse fieldsets.
Developers choose JSON:API Serializer for its exceptional speed, familiar declarative syntax, and comprehensive feature set that includes caching, conditional fields, and compound documents. It is a community-maintained, drop-in replacement for fast_jsonapi with ongoing improvements and support.
A fast JSON:API serializer for Ruby (fork of Netflix/fast_jsonapi)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Benchmarks show significantly faster serialization times compared to alternatives like ActiveModelSerializer, optimized for speed in high-traffic APIs.
Uses a simple, readable syntax similar to Active Model Serializer, making it easy for developers familiar with AMS to adopt and maintain.
Supports compound documents, caching, sparse fieldsets, conditional fields, and key transforms, ensuring full compliance with the JSON:API spec.
As a fork of Netflix's fast_jsonapi, it benefits from ongoing community support, regular updates, and a clear migration path from the original.
The library only handles serialization; for deserialization, developers must integrate additional gems like JSONAPI.rb, adding complexity and dependency management.
v2 is in maintenance mode with only bug fixes, and v3 is under active development, which may introduce breaking changes or require future migration efforts.
Caching requires explicit configuration with cache stores, namespaces, and expiry options, which can be overkill for simple applications and adds setup overhead.
jsonapi-serializer is an open-source alternative to the following products: