Changes between Version 5 and Version 6 of specification


Ignore:
Timestamp:
02/07/2006 10:12:40 AM (12 years ago)
Author:
Jan-Klaas Kollhof
Comment:

names for objects need to be Strings according to JSON specs

Legend:

Unmodified
Added
Removed
Modified
  • specification

    v5 v6  
    8888{{{ 
    8989#!javascript 
    90 --> { method: "echo", params: ["Hello JSON-RPC"], id: 1} 
    91 <-- { result: "Hello JSON-RPC", error: null, id: 1} 
     90--> { "method": "echo", "params": ["Hello JSON-RPC"], "id": 1} 
     91<-- { "result": "Hello JSON-RPC", "error": null, "id": 1} 
    9292}}} 
    9393 
     
    102102... 
    103103 
    104 --> {method: "postMessage", params: ["Hello all!"], id: 99} 
     104--> {"method": "postMessage", "params": ["Hello all!"], "id": 99} 
    105105 
    106 <-- {result: 1, error: null, id: 99} 
     106<-- {"result": 1, "error": null, "id": 99} 
    107107 
    108 <-- {method: "handleMessage", params: ["user1", "we were just talking about you"], id: null} 
     108<-- {"method": "handleMessage", "params": ["user1", "we were just talking"], "id": null} 
    109109 
    110 <-- {method: "handleMessage", params: ["user3", "sorry, gotta go now, ttyl"], id: null} 
     110<-- {"method": "handleMessage", "params": ["user3", "sorry, gotta go now, ttyl"], "id": null} 
    111111 
    112 --> {method: "postMessage", params: ["I have a question:"], id : 101} 
     112--> {"method": "postMessage", "params": ["I have a question:"], "id": 101} 
    113113 
    114 <-- {method: "userLeft", params: ["user3"], id: null} 
     114<-- {"method": "userLeft", "params": ["user3"], "id": null} 
    115115 
    116 <-- {result: 1, error: null, id: 101} 
     116<-- {"result": 1, "error": null, "id": 101} 
    117117 
    118118...