rafaelmaeuer
8/9/2017 - 4:47 PM

Convert JSON to/from URI-encoded String - From https://stackoverflow.com/questions/9909620/convert-json-into-uri-encoded-string

function jsonToURI(json){ return encodeURIComponent(JSON.stringify(json)); }

function uriToJSON(urijson){ return JSON.parse(decodeURIComponent(urijson)); }