sourcegraph / jsonrpc2

Package jsonrpc2 provides a client and server implementation of JSON-RPC 2.0 (http://www.jsonrpc.org/specification)
MIT License
196 stars 62 forks source link

support responses with null result ({"result":null}) #6

Closed sqs closed 7 years ago

felixfbecker commented 7 years ago

Just FYI in PHP I solved this by having two classes, SuccessResponse and ErrorResponse, so there is a distinction between result not set (ErrorResponse) and result being null in a SuccessResponse