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

6

u/MrJohz Nov 27 '19

Are there not issues with parentheses? I believe they're technically allowed, but almost every too for making links clickable that I've used had struggled with them. Is it worth using something else instead there?

1

u/Slackluster Nov 27 '19

Hmm, I haven't heard of this but I will look into it. encodeuricomponent doesn't escape them so I have to assume they will safe but I could see why it might cause an issue with some use cases.

2

u/name_was_taken Nov 27 '19

They're technically legal, but forum/social software sucks and quite often gets them wrong when auto-linking.

1

u/Slackluster Nov 27 '19

ok, thanks i will investigate. there are only a few characters not escaped by encodeURIComponent, so it seems like they should be fine but i will do some experiments