added streams and reader support to JSON