Catalog/data-transform-ndjson

Data Transform

NDJSON parse/stringify API

Parses NDJSON / JSON Lines into an array (one JSON value per line) or stringifies an array back to NDJSON, with line-level error reporting. Answers 'How do I parse JSON Lines?', 'How do I convert an array to/from NDJSON?'.

Price$0.01per request
MethodPOST
Route/v1/data-transform/ndjson
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformndjsonjsonljson-linesparsestringifywrangle
API URLhttps://x402.hexl.dev/v1/data-transform/ndjson
Integration docs
Example request
{
  "text": "{\"a\":1}\n{\"a\":2}",
  "mode": "parse"
}
Example response
{
  "result": [
    {
      "a": 1
    },
    {
      "a": 2
    }
  ],
  "lineCount": 2
}
Input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "text": {
      "type": "string",
      "examples": [
        "{\"a\":1}\n{\"a\":2}"
      ]
    },
    "mode": {
      "type": "string",
      "examples": [
        "parse"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}