Minimal and easy to use JSONRPC implementation for Java.
// create once
JsonRpcServer server = new JsonRpcServer();
// jsonreq can be String, InputStream or Reader
// service is the Object that json request is executed against
String jsonres = server.serve(service, jsonreq).toJson();
Please see TestService and test cases for example.
Simply add it to your Maven project dependencies.
<dependency>
<groupId>me.shakiba.jsonrpc</groupId>
<artifactId>jsonrpc</artifactId>
<version>0.1.0</version>
</dependency>