validate_empty_params

Function validate_empty_params 

Source
pub fn validate_empty_params(params: &JsonValue) -> Result<(), RpcError>
Expand description

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.