We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当 json-rpc 请求的数组中有回车或换行时,服务器会返回错误(-32700 Parse error)。
{ "jsonrpc": "2.0", "method": "sendmany", "params": [[ {"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"},{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"}]], "id": 1 }
将数组中的回车删掉,服务器会返回正确结果
{ "jsonrpc": "2.0", "method": "sendmany", "params": [[{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"},{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"}]], "id": 1 }
估计是 JSON 解析的时候出错的,当用 Newtonsoft Json.NET 解析时不会出错。
更简单的测试用例:
{ "jsonrpc": "2.0", "method": "getblockcount", "params": [ ], "id": 1 }
JSON 解析错误
{ "jsonrpc": "2.0", "method": "getblockcount", "params": [], "id": 1 }
JSON 解析正确
The text was updated successfully, but these errors were encountered:
It seems if you put a "\t" character into the JSON string, you will get this error.
Sorry, something went wrong.
3676e78
No branches or pull requests
当 json-rpc 请求的数组中有回车或换行时,服务器会返回错误(-32700 Parse error)。
将数组中的回车删掉,服务器会返回正确结果
估计是 JSON 解析的时候出错的,当用 Newtonsoft Json.NET 解析时不会出错。
更简单的测试用例:
JSON 解析错误
JSON 解析正确
The text was updated successfully, but these errors were encountered: