Do you know a fast and simple way to encode a Javascript Object into a string that I can pass via a GET Request?
string
GET
No jQuery, no
jQuery
Well, everyone seems to put his one-liner here so here goes mine:
const encoded = Object.entries(obj).map(([k, v]) => `${k}=${encodeURIComponent(v)}`).join("&");