v.21.1Improvements
Use Content-Type application/x-ndjson for JSONEachRow Output Format
UseContent-Type: application/x-ndjson(http://ndjson.org/) for output formatJSONEachRow. #32223 (Dmitriy Dorofeev).
Why it matters
This feature enables better compatibility with tools and services that expect newline-delimited JSON (NDJSON) by explicitly setting the appropriateContent-Type header when ClickHouse outputs data using the JSONEachRow format. It improves integration and data interchange scenarios involving NDJSON.How to use it
When querying ClickHouse with the output format set toJSONEachRow, the HTTP response will include the Content-Type: application/x-ndjson header, signaling that the output follows the NDJSON specification. No additional configuration is required from the user side.