Livecoding GitHub

Keyless Schemæ Object Notation

Download this project

KSON is mini­fi­ca­tion for your JSON. At the price of read­abil­ity and com­plexity, you can use KSON re­duce the size of your ser­ialized data.

Com­pared to other se­ri­al­iza­tion li­braries, the over­head is min­imal. Mini­fied kson.​min.​js is only 2KB small (less than 1K gzipped). As for speed, since KSON builds on JSON, most of pars­ing is done using na­tive browser func­tions.

The most ob­vi­ous re­dun­dancy in an array of ob­jects en­coded with JSON are the keys on each ob­ject. These which only has to be loaded once. Your data can be com­pressed even fur­ther by lever­ag­ing do­main know­ledge and using KSON's flex­i­ble codec sys­tem.

KSON.stringify
Derive Schema
Schema JSON
Run Benchmark

KSON Size/Item bytes/item

JSON Size/Item bytes/item

KSON Net Latency
JSON Net Latency
KSON Net Latency (gz)
JSON Net Latency (gz)
KSON Encode Time
JSON Encode Time
KSON Decode Time
JSON Decode Time
KSON Total Time
JSON Total Time
KSON Total Time (gz)
JSON Total Time (gz)
ms
ms
ms
ms
ms
ms
ms
ms
ms
ms
ms
ms

Comming soon