implemented json rosetta example

a "to hashmap" example might also be good to show there
Nope, putting the assertions in a `#[test]` allows people to run `cargo test` and ensure none of the examples are broken.