JSON: Difference between revisions

From air
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
http://www.json.org/
http://www.json.org/


Binary JSON (format binaire de objets JSON) : http://bsonspec.org/
* [[BSON]] Binary JSON (format binaire de objets JSON) : http://bsonspec.org/
* [[JSON-LD]] Linking Data
* [[JSON Siren]]
* [[HOCON]] (Human-Optimized Config Object Notation)


==API==
==API==

Latest revision as of 15:26, 15 September 2016

JSON (JavaScript Object Notation)

http://www.json.org/

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",
                phones: ["+33 123456789", "+33 653456789"], 
	};
    
    var message = JSON.stringify(vcard);

    var vcard2 = JSON.parse(message);