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}

推荐答案

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.

Json相关问答推荐

最新版本的Deneb在数据溢出时不支持滚动

PowerShell:将Invoke-WebRequest与变量一起使用

使用JQ将JSON输出转换为CSV复杂 struct

当由.sh脚本执行时,AWS查询字符串不会提取任何数据

Jolt:数组中两个字符串的连接

Oracle JSON 查询中的动态列列表

使用 jq 获取所有嵌套键和值

如何将复杂的 JSON 反序列化为 Rust 类型?

修改 boost::json::object 中的值

如何实现一个通用的 serde_json::from_str

SyntaxError:Object.parse(本机)AngularJS中的意外标记o

Rails:format.js 或 format.json,或两者兼而有之?

如何从 HttpClient 解析 JSON 字符串?

使用 JSON 的 javascript 深拷贝

如何将 LinkedTreeMap 转换为 gson JsonObject

jQuery AJAX 和 JSON 格式

如何使用 Newtonsoft.Json 包在 C#(4.0) 中解析我的 json 字符串?

如何向(JSON)对象的原型添加方法?

如何从 JSON 响应中提取单个值?

如何使用 Json.NET 反序列化可以是两种不同数据类型的 JSON 属性