pub fn validate_empty_params(params: &JsonValue) -> Result<(), RpcError>
Validates whether the provided JSON parameter is an empty array or object, returning success if it is empty or an Error if it contains values.