JDogo
Open playground

Service-to-service transfer

For APIs, queues and files, JDogo is the smallest format once compressed, round-trips every value exactly, and needs no schema agreed in advance.

Measured

GzippedJSONAvro (binary)JDogovs JSON
Flat table, 2,000 rows37.5 KB32.7 KB25.4 KB−32%
Time series, 500 points2.6 KB2.6 KB1.1 KB−59%
Kafka message batch774 B757 B385 B−50%
All 200 test cases480 KB417 KB332 KB−31%

Exact round trips over all 200 cases: JDogo 200, Avro 161, TOON 192. Avro needs one schema for every row, so data whose shape changes from row to row does not come back exactly.

How

from jdogo import JDogoFastAPIMiddleware
app.add_middleware(JDogoFastAPIMiddleware)   # Accept: application/jdogo gets JDogo

Compress as you would JSON (Content-Encoding: gzip or br). Clients that don't send Accept: application/jdogo keep getting JSON, so you can switch one consumer at a time. For very large tables, use the streaming reader and writer.