"fourthparam": "this is already a different object.", "secondparam": "there can be same name fields in different objects.", "thirdparam": "this contains information of the thirdparam."

], "id": 1234 }

Wersja 1.1 () Format zawartości zapytania może być przedstawiona jak przykład poniżej: { "version": "1.1", "method": "confirmFruitPurchase", "id": "194521489", "params": [ [ "apple", "orange", "pear" ], 1.123 ] } Format odpowiedzi może wyglądać tak: { "version": "1.1", "result": "done", "error": null, "id": "194521489" }

Wersja 2.0 (Propozycja Specyfikacji) Procedura Call z parametrami pozycyjnymi: --> {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1} <-- {"jsonrpc": "2.0", "result": 19, "id": 1} --> {"jsonrpc": "2.0", "method": "subtract", "params": [23, 42], "id": 2} <-- {"jsonrpc": "2.0", "result": -19, "id": 2} Procedura Call z nazwami parametrów: --> {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3} <-- {"jsonrpc": "2.0", "result": 19, "id": 3} --> {"jsonrpc": "2.0", "method": "subtract", "params": {"minuend": 42, "subtrahend": 23}, "id": 4} <-- {"jsonrpc": "2.0", "result": 19, "id": 4} Notyfikacja: --> {"jsonrpc": "2.0", "method": "update", "params": [1,2,3,4,5]} --> {"jsonrpc": "2.0", "method": "foobar"} Procedura Call procedury