Email or username:

Password:

Forgot your password?
Niki Tonsky

Is there anything in programming as disgusting as double-encoded json?

gzip + base64 _after_ is a close second

double base64 is somewhere in there, too

8 comments
Nundrum

@nikitonsky Caldav.

iCal inside XML inside HTTP with special nonstandard verbs.

Olical

@nikitonsky I've dealt with triple nested JSON before. So many backslashes and quotes when grepping 🫠

Raphael

@nikitonsky We had to do encrypted XML in JSON in HTTP Multipart once.

Raphael

@nikitonsky I seem to remember doing sed-in-bash-in-Ruby once. 😨

ldvsoft

@nikitonsky recently found out that one internal page requires data to be passed as this: urlencode in utf8, base64, urlencode again.

Why twice? Why not just URL-variant of base64? No idea.

Einārs

@nikitonsky non-utf-8 text files. extra points for byte order mark

Valera Pesternikov

@nikitonsky and then add this json as field to another json... and then double encode it again 😁

Thomas Karpiniec

@nikitonsky Binary as a JSON number array with elements in the range -128 to 127 is good for the old blood pressure

Go Up