support for reading json data from stdin