JSON-RPC method param validation