DRY out chunked JSON streaming
remove pp