A library for a simple integration of the JSON-RPC 2.0 protocol to a Java application.
The motivation is to provide a simple, fast and reliable way to integrate the JSON-RPC 2.0 protocol into a Java application on the server and/or the client side. For that you need to configure either JsonRpcClient
or JsonRpcServer
and implement transport code - the library takes care of the rest. No manual JSON transformation, reflection and manual error handling: just a service interface with annotations. Even this is not a requriement: there is a fluent API on the client side if you like builders. The library is a compilant JSON-RPC 2.0 protocol implementation, so it should handle all kind of JSON-RPC requests (correct or mailformed). It doesn't depend on any transport protocol, an application server, or a DI library.
The library has a few dependencies:
- Jackson, which is great for JSON parsing and databinding;
- Guava, which is great for caching and optional values (needed only for the server side)
- SL4J, which is the standard for logging (needed only for server)
- IntelliJ Annotation, which is great for providing compiler-time null checks.