JPack Schema

Smart JSON compression using schema-based value deduplication

Achieve 40-70% size reduction while maintaining full JSON compatibility

Input JSON

0 chars

JPack Schema Output

About JPack Schema Format

How it works

JPack Schema creates a dictionary of unique values and replaces duplicates with numeric references. This maintains full JSON compatibility while achieving 40-70% compression.

Original JSON:
[
  {"name": "John", "role": "admin"},
  {"name": "Jane", "role": "admin"},
  {"name": "Bob", "role": "user"}
]
JPack Schema:
{
  "schema": {
    "0": "John", "1": "admin", 
    "2": "Jane", "3": "user", "4": "Bob"
  },
  "data": [
    {"name": 0, "role": 1},
    {"name": 2, "role": 1},
    {"name": 4, "role": 3}
  ]
}

Key benefits

JSON Compatible
Output remains valid JSON for easy processing
High Compression
40-70% size reduction through deduplication
Easy Operations
Simple to query and manipulate data
Reversible
Convert back to original format easily
Best for:
• Arrays with repeated values
• User lists and product catalogs
• API responses with common fields
• Configuration data with duplicates