Open
Description
What does 'go version' print? go version devel +2f6b9f80be36 Fri Apr 25 09:46:07 2014 -0600 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Use json.NewEncoder(writer).Encode(value) What happened? Each call to json.Encoder.Encode uses an internal bytes.Buffer to buffer all encoded output prior to writing any of that output. What should have happened instead? Output should use little or no internal buffering. Encoder should be able to efficiently encode (and incrementally output) very large inputs.