UNPKG

@ncodedcode/ncode_react_lib

Version:

ncode react application context library

16 lines 562 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NCJsonSerializer = void 0; var NCJsonSerializer = (function () { function NCJsonSerializer() { } NCJsonSerializer.encode = function (obj) { return btoa(unescape(encodeURIComponent(JSON.stringify(obj)))); }; NCJsonSerializer.decode = function (json) { return JSON.parse(decodeURIComponent(escape(atob(json)))); }; return NCJsonSerializer; }()); exports.NCJsonSerializer = NCJsonSerializer; //# sourceMappingURL=NCJsonSerializer.js.map