read json from stdin