Search code examples
jsonjson-rpc

JSON RPC - What is the "id" for?


I don't understand what the ID is for in JSON RPC. Also, how bad is it considered to not use JSON-RPC.org's standards when developing a toolkit? There seems to be some ambiguity in the JSON-RPC world.

P.S. The ID I'm referring to is the id in here:

{"params":["Hello","World"],"method":"hello_world","id":1}

Solution

  • You're not guaranteed to get your answers back in the order you asked for them; the id is to help you sort that out.