json-rpc: Input params validation