A simple auto register for JSON-RPC, will simply the code when developed with JSON-RPC