Finally published json2url, a JSON object serializer.

111-Challenge note

It took me a little longer to do this, as I took part in the German hackathon “#WirvsVirusHack” last weekend. Took me 4 joker days, leaving me with 7. Took, took 🚝

Json2Url is a JavaScript module that encodes any JavaScript Object or Array to be usable in a url.

You can install it with npm: npm i json2url;

For example:

import { serialize } from 'json2url';

const object = {
  someValue: 0,
  someOtherValue: 89,
  aNumber: 41,
  oneHundred: 100
};
console.log(serialize(object));
// OUTPUTS: 0&89&41&100

Find it on Github: https://github.com/TimoBechtel/json2url