Last active
February 12, 2017 19:48
-
-
Save hackjutsu/d7229553f75dce462ab2e6ba52e17f20 to your computer and use it in GitHub Desktop.
JSON object to string and vice versa
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 json = '{"result":true,"count":1}'; | |
| var obj = JSON.parse(json); | |
| console.log(JSON.stringify(obj)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment