implemented json rosetta example

a "to hashmap" example might also be good to show there
The assertions should probably go in a #[test].