yaml2json: handle stdin