Created a module for reading a stream into a string.
Updated json tool to read from stdin.