sourcegraph / jsonrpc2

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

Add PlainObjectCodec #45

Closed samherrmann closed 3 years ago

samherrmann commented 3 years ago

The library currently contains the following codecs:

The commit in this MR adds a third codec called PlainObjectCodec that does not have a header in the message. It only uses Go's json.Encoder/json.Decoder to encode/decode messages.