A class representing a JSON-RPC 2.0 response object.
id
Id of the request that this response is for
result
Result of the call
error
Error associated with the call
new()
Initialize a JSON-RPC response
JsonRpcResponse$new(id = NULL, result = NULL, error = NULL)
id
Id of the request that this response is for
result
Result of the call
error
Error associated with the call
dehydrate()
Dehydrate the response to a list
JsonRpcResponse$dehydrate()
serialize()
Serialize the response to JSON
JsonRpcResponse$serialize()
clone()
The objects of this class are cloneable with this method.
JsonRpcResponse$clone(deep = FALSE)
deep
Whether to make a deep clone.