flats 0.1.0

flattens nested structures into a flat single dimension map
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! gron as in this [this](https://github.com/FGRibreau/gron)
extern crate flats;
extern crate serde_json;

use std::io::stdin;

fn main() {
  let json = serde_json::from_reader(stdin()).expect("invalid json");
  for (k, v) in flats::flatten_value(json) {
    println!("{} = {}", k, v)
  }
}