October 2019
Intermediate to advanced
444 pages
10h 37m
English
Follow the steps to implement csv to the JSON converter:
[dependencies]csv = "1.1"serde_json = "1"
use csv;use serde_json as json;use std::io;
fn to_json(headers: &csv::StringRecord, current_row: csv::StringRecord) -> io::Result<json::Value> { let row: json::Map<String, json::Value> = headers .into_iter() .zip(current_row.into_iter()) .map(|(key, ...Read now
Unlock full access