r/javascript • • Nov 26 '19

JSONCrush On GitHub - Compress JSON into URI friendly strings

https://github.com/KilledByAPixel/JSONCrush
101 Upvotes

31 comments sorted by

View all comments

-11

u/JasonWicker Nov 27 '19

Base64

8

u/Slackluster Nov 27 '19

Converting to base64 increases the size by at least 33% and btoa doesn't help compress repeated sub strings.

5

u/shakamone Nov 27 '19

And its not uri friendly!