Hacker News new | ask | show | jobs
by pkstn 1284 days ago
Use gzip for compressing. If you want to stream, use following syntax:

[\n

  { ... },\n

  { ... },\n

  { ... },\n

  ...\n
]\n

With this simple trick you can stream easily..

1 comments

in client-side you can parse bunch of items by just wrapping with [ and ]
and well, there's also BSON: https://github.com/mongodb/js-bson