JSON: Difference between revisions
Jump to navigation
Jump to search
(Created page with "JSON (JavaScript Object Notation) http://code.google.com/p/google-gson/") |
No edit summary |
||
| Line 1: | Line 1: | ||
JSON (JavaScript Object Notation) |
JSON (JavaScript Object Notation) |
||
http://www.json.org/ |
|||
==API== |
|||
===Java=== |
|||
http://code.google.com/p/google-gson/ |
http://code.google.com/p/google-gson/ |
||
===Javascript & [[Node.js]]=== |
|||
<pre> |
|||
var vcard = { |
|||
lastname: "DONSEZ", |
|||
firstname: "Didier", |
|||
birthday: new Date(), |
|||
email: "dd@moi.org", |
|||
}; |
|||
var message = JSON.stringify(vcard); |
|||
var vcard2 = JSON.parse(message) |
|||
</pre> |
|||
Revision as of 09:12, 5 March 2013
JSON (JavaScript Object Notation)
API
Java
http://code.google.com/p/google-gson/
Javascript & Node.js
var vcard = {
lastname: "DONSEZ",
firstname: "Didier",
birthday: new Date(),
email: "dd@moi.org",
};
var message = JSON.stringify(vcard);
var vcard2 = JSON.parse(message)