Created
August 2, 2012 10:23
-
-
Save osahyoun/3236111 to your computer and use it in GitHub Desktop.
JSON#stringify
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 javascript_obj = {animal: 'Zebra'}; | |
| typeof javascript_obj; | |
| // "object" | |
| var json_obj = JSON.stringify(javascript_obj); | |
| typeof json_obj; | |
| // "string" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment