edn-rs

[Experimental] Crate to parse and emit EDN

Usage

Cargo.toml toml [dependencies] edn-rs = "0.2.1"

Parse an EDN into a EdnNode: ```rust extern crate edn_rs;

use ednrs::parseedn;

fn main() { ... let edn = String::from("[1 2 [:3 \"4\"]]"); let value = parse_edn(edn); ... } ```

Emits EDN format from a Json file ```rust use ednrs::emitedn;

fn main() { let json = String::from("{\"hello\": \"world\"}"); let edn = String::from("{:hello \"world\"}");

 assert_eq!(edn, emit_edn(json));

} ```

Current Features