JSON: Difference between revisions

[pending revision][pending revision]
Content deleted Content added
Line 34:
 
There is a [http://ajax.schwarz-interactive.de Ajax.NET Library] for the Microsoft .NET Framework that will export .NET classes into JSON syntax to communicate between the client and the server, both directions.
 
==JSON example==
 
{"menu": {
"id": "file",
"value": "File:",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
 
The same text expressed as XML:
 
<menu id="file" value="File" >
<popup>
<menuitem value="New" onclick="CreateNewDoc()" />
<menuitem value="Open" onclick="OpenDoc()" />
<menuitem value="Close" onclick="CloseDoc()" />
</popup>
</menu>
 
 
 
==JSON pronunciation==