Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // just a test to see if compressing url-encoded json looks/works any better
  2.  
  3. var strofa = require("strofa");
  4.  
  5. cl = function(obj) { console.dir(obj, {depth: null, colors: true}); };
  6.  
  7. var string = '{"subjectonly_keyword":["ACCTG 713"]}';
  8. cl(string);
  9.  
  10. cl(encodeURIComponent(string));
  11.  
  12. var output = strofa.english.encodeBase64(string);
  13. cl(output);
  14.  
  15. cl(strofa.english.decodeBase64(output));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement