module
extract
Finding the rows in a JSON response.
Functions
default_rows
pub fn default_rows(j: &Value) -> Result<Value, Error>The rows when no path says where they are. If it can't tell, the error lists the choices.
header_row
pub fn header_row(rows: &[Value]) -> Option<(Vec<String>, Vec<Vec<String>>)>[["NAME","POP"],["Alabama","4893186"]]: a header row, then rows of the same length, as the US Census API sends.
select
pub fn select(j: &Value, path: &str) -> Result<Value, Error>What path selects: data.items, results[*].stats, [1].