dapt 0.1.9

serializing and unseralizing unstructured data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

use dapt::Dapt;

fn main() {
    let args: Vec<String> = env::args().collect();
    // deserialize the json into a dapt object
    let d: Dapt = serde_json::from_str(&args[1]).unwrap();

    // get the path specified
    let d = d.sub(&args[2]).unwrap();

    // re serialize the data and print it out
    println!("{}", serde_json::to_string(&d).unwrap());
}