{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/7872","labels_url":"https://api.github.com/repos/golang/go/issues/7872/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/7872/comments","events_url":"https://api.github.com/repos/golang/go/issues/7872/events","html_url":"https://github.com/golang/go/issues/7872","id":51287338,"number":7872,"title":"encoding/json: Encoder internally buffers full output","user":{"login":"extemporalgenome","id":536740,"avatar_url":"https://avatars.githubusercontent.com/u/536740?v=3","gravatar_id":"","url":"https://api.github.com/users/extemporalgenome","html_url":"https://github.com/extemporalgenome","followers_url":"https://api.github.com/users/extemporalgenome/followers","following_url":"https://api.github.com/users/extemporalgenome/following{/other_user}","gists_url":"https://api.github.com/users/extemporalgenome/gists{/gist_id}","starred_url":"https://api.github.com/users/extemporalgenome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extemporalgenome/subscriptions","organizations_url":"https://api.github.com/users/extemporalgenome/orgs","repos_url":"https://api.github.com/users/extemporalgenome/repos","events_url":"https://api.github.com/users/extemporalgenome/events{/privacy}","received_events_url":"https://api.github.com/users/extemporalgenome/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/accepted","name":"accepted","color":"ededed"},{"url":"https://api.github.com/repos/golang/go/labels/repo-main","name":"repo-main","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":219,"closed_issues":71,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-01-03T06:42:02Z","due_on":"2015-05-31T14:00:00Z","closed_at":null},"comments":7,"created_at":"2014-04-26T17:47:25Z","updated_at":"2015-01-03T23:19:22Z","closed_at":null,"body":"<pre>What does 'go version' print?\n\ngo version devel +2f6b9f80be36 Fri Apr 25 09:46:07 2014 -0600 linux/amd64\n\nWhat steps reproduce the problem?\nIf possible, include a link to a program on play.golang.org.\n\n1. Use json.NewEncoder(writer).Encode(value)\n\nWhat happened?\n\nEach call to json.Encoder.Encode uses an internal bytes.Buffer to buffer all encoded\noutput prior to writing any of that output.\n\nWhat should have happened instead?\n\nOutput should use little or no internal buffering. Encoder should be able to efficiently\nencode (and incrementally output) very large inputs.</pre>"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/68613594","html_url":"https://github.com/golang/go/issues/7872#issuecomment-68613594","issue_url":"https://api.github.com/repos/golang/go/issues/7872","id":68613594,"user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T23:19:22Z","updated_at":"2015-01-03T23:19:22Z","body":"@bradfitz I can see now that I misunderstood what this bug is about, my apologies!\r\n\r\nFrom the title \"Encoder internally buffers full output\" I had incorrectly thought _all calls to Encode_ were buffered. I have re-read the issue understand now that only the data written by a _single_ call to Encode is buffered, and so streaming works fine."}}