Created
October 12, 2015 05:31
-
-
Save s-melnikov/7448ce3d3ceb3e08a5da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var params = { test: "Hello World!" }; | |
var base64str = btoa(JSON.stringify(params)); // "eyJ0ZXN0IjoiSGVsbG8gV29ybGQhIn0=" | |
JSON.parse(atob(base64str)).test // "Hello World!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment