title: Create JSON array from seperate []byte results in GoLang
body: <p>I have a loop of results coming from a <a href="https://github.com/HouzuoGuo/tiedot" rel="nofollow">tiedot</a> query.</p>
  
  <p>In it's most basic form it looks like this:</p>
  
  <pre><code>col.ForEachDoc(func(id int, docContent []byte) (willMoveOn bool) {
      return true
      return false
  })
  </code></pre>
  
  <p>I can send these results down the pipe to the client, but only 1 at a time. Not quite what I want. </p>
  
  <p>I can also create single JSON objects, using json.Unmarshal but how do I combine them all into 1 large JSON array?</p>
  
  <p>Many thanks. New to GO!</p>