implemented json rosetta example

a "to hashmap" example might also be good to show there