Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

json_rpc is a library for routing JSON 2.0 format remote procedure calls over different transports, implementing the JSON-RPC standard. It is designed to automatically generate marshalling and parameter checking code based on the RPC parameter types.

Installation

As a nimble dependency:

requires "json_rpc"

Via nimble install:

nimble install json_rpc

Use cases

If you're new to JSON-RPC and/or json_rpc, check out our brief overview. The rest of the documentation is organized around use cases:

  1. Establishing a JSON-RPC connection
  2. Receiving a JSON-RPC request
  3. Sending a JSON-RPC request
  4. Adding Remote RPC Targets
  5. Throwing and handling exceptions
  6. Format conversion
  7. Testability

The cookbook section contains the functional code examples used throughout the docs.