Skip to content
J

JSONCrush

Compress JSON into URL friendly strings

by KilledByAPixelFree

#1934in Developer Tools
0In stores

Description

JSONCrush is a small JavaScript library that compresses JSON strings so they can be carried in a URL and decompressed later. You pass a JSON…

Highlights

  • Compress JSON into URL-friendly strings
  • Crush and uncrush functions
  • No dependencies and under 2 KB minified
  • Install with npm or import the file

Ratings & Reviews

No ratings yet

Be the first to rate JSONCrush.

People also visit

J

JaySnake

Turn messy JSON into something you can actually read

Developer Tools
Launch
J

JSONT

A powerful and concise online JSON formatting tool

Developer Tools
Launch
S

Super JSON Formatter

Format and transform JSON data in your browser

Developer Tools
Launch
S

Svelte Jsoneditor

A web-based tool to view, edit, format, repair, query, transform

Developer Tools
Launch
J

JSON Max

JSON Max is a fast, simple way to clean up messy JSON on your Mac

Developer Tools
Launch
F

Format JSON Online

A Complete Toolkit for JSON & Data Processing

Productivity
Launch

JSONCrush FAQ

What is JSONCrush?

A small JavaScript library that compresses JSON strings so they fit in a URL and can be decompressed later.

How do I use it?

Install with npm install jsoncrush, import it, call JSONCrush.crush() on a JSON string, and call JSONCrush.uncrush() to decode.

Do I need to encode the result for a URL?

Yes. The README says to call encodeURIComponent() when the crushed string is placed in a URL.

Are there limits?

It is meant for JSON up to about 10K characters. The README says it can be slow beyond that, and that the \u0001 character is removed if it appears in the input.

What are the best JSONCrush alternatives?

Popular alternatives to JSONCrush include JaySnake, JSONT and Super JSON Formatter. See all JSONCrush alternatives

Developer Stuff

Badges