The JSON (JavaScript Object Notation) end point will be the primary end point and it will have the initial focus for development. The JSON endpoint would most likely be of the form: www.example.com/json.

An example of a JSON message would look like:

"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}

Both an XMLHTTP and Web Worker would call using the JSON interface. The Web Worker is a way of creating threads to do work while the main page loads.

All the incoming messages will be validated using JSON schema. JSON messages will never be eval()'d.