implemented json rosetta example

a "to hashmap" example might also be good to show there
A `#[cfg(not(test))]` should be put above `fn main()` so the compiler doesn't warn about unused code when you run `cargo test`.