easyjsonserde

Dead-simple JSON serialization / deserialization

easy_json_serde works in conjunction with serde. Decorate your structs with serde's Serialize and Deserialize, bring easy_json_serde's EasyJsonSerialize and EasyJsonDeserialize into view, and easily serialize / deserialize to and from JSON.

```rust use std::fs::File;

use easyjsonserde::{EasyJsonDeserialize, EasyJsonSerialize}; use serde::{Deserialize, Serialize};

[derive(Serialize, Deserialize)]

struct Dog { name: String, age: u8, }

fn main() -> Result<(), Box> { let rufusoriginal = Dog { name: "Rufus".tostring(), age: 10, };

let file_name = "test.json";
let indentation_string = "    ";
File::save(file_name, &rufus_original, indentation_string)?;

let mut json_file = File::open(file_name)?;
let _rufus_deserialized: Dog = Dog::load(&mut json_file)?;

Ok(())

} ```