             streamResults sres.body.results, res
             callback()
       async.timesSeries(bucket.pages + 1, iterator, callback)
-    , -> res.write ']'
+    , ->
+      res.write('{}]')
+      res.end()
 
 streamResults = (results, res) ->
   results.forEach (artwork) ->

{ API_URL, POSITRON_URL, FUSION_URL, APP_URL } = require('sharify').data
artsyXapp = require 'artsy-xapp'
PAGE_SIZE = 100
FUSION_PAGE_SIZE = 1000

epoch = -> moment('2010 9 1', 'YYYY MM DD')
buckets = _.times moment().diff(epoch(), 'months'), (i) ->

@bingjson = (req, res, next) ->
  res.set('Content-Disposition': 'attachment').write('[')
  getArtworkBuckets (err, buckets) ->
    async.mapSeries buckets.reverse(), (bucket, callback) ->
      iterator = (page, callback) ->
        request
          .get("#{FUSION_URL}/api/v1/artworks")
