simple script to output json from stdin.
update example and add sample output