Build json as stream comes in