to_json_array

Function to_json_array 

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

Converts the provided JSON-RPC parameters into an array of JSON values, returning a reference to the array if successful, or a JsonResult error containing a JsonError when the input is not a JSON array.