Description
Unlike a standard application/json response that returns a single JSON object or a complete array, an application/x-ndjson response streams individual JSON objects separated by newline characters ( \n ).
This allows clients to process data incrementally without waiting for the entire payload to download, which is common in logs, real-time events, or LLM (Large Language Model) streaming responses.
Description
Unlike a standard application/json response that returns a single JSON object or a complete array, an application/x-ndjson response streams individual JSON objects separated by newline characters ( \n ).
This allows clients to process data incrementally without waiting for the entire payload to download, which is common in logs, real-time events, or LLM (Large Language Model) streaming responses.