Stream JSON responses

Reduces memory usage for big datasets.
JIRA CDB-2600 #resolve