Introduction

Panko is a library which is inspired by ActiveModelSerializers 0.9 for serializing ActiveRecord/Ruby objects to JSON strings, fast.

To achieve it’s performance:

  • Oj - Panko relies on Oj since it’s fast and allow to serialize incrementally using Oj::StringWriter.
  • Serialization Descriptor - Panko computes most of the metadata ahead of time, to save time later in serialization.
  • Type casting — Panko does type casting by itself, instead of relying on ActiveRecord.


Copyright © 2026 Panko Serializer. Distributed under the MIT License.

This site uses Just the Docs, a documentation theme for Jekyll.