You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import json
import json_serialization
typeRpcResponse*[T] =objectresult*: T
id*: int
error*: stringRpcResponseRef*[T] =refRpcResponse[T]
whenisMainModule:
echo("Hello, World!")
let jsn =%* {
"result": "0x0",
"id": 0
}
echoJson.decode($jsn, RpcResponse[string])
echoJson.decode($jsn, RpcResponseRef[string])[] # Notice that I'm dereferencing the result here, so it can be printed by echo
Error:
The text was updated successfully, but these errors were encountered: