A class representing a JSON-RPC 2.0 response object.
idId of the request that this response is for
resultResult of the call
errorError associated with the call
new()Initialize a JSON-RPC response
JsonRpcResponse$new(id = NULL, result = NULL, error = NULL)
idId of the request that this response is for
resultResult of the call
errorError 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)
deepWhether to make a deep clone.