KilledByAPixel / JSONCrush

Compress JSON into URL friendly strings
https://killedbyapixel.github.io/JSONCrush
MIT License
1.57k stars 45 forks source link

Remove quotes from key names and numbers #15

Open KilledByAPixel opened 3 years ago

KilledByAPixel commented 3 years ago

It should be save to remove quotes around key names and number values and add them back in when uncrushed.

This should result in smaller crushed strings in nearly all cases.

The downside is that right now the input string can be anything, doesn't need to be json. This would require that the string is valid json. Maybe a flag that defaults to false that can do additional crushing?

KilledByAPixel commented 3 years ago

check out https://jsonurl.org/ and https://github.com/jsonurl/jsonurl-js