Data Transformation & Quality · x402 V2

JSONL Normalize Validate

Use this service when you need this capability: parses bounded JSON Lines deterministically, retains rejected lines, and emits canonical JSON records with source line numbers.

Price and endpoint

LivePOSTBase USDC

0.01 USDC per call

x402 V2 exact payment on Base mainnet (eip155:8453) using USDC. The HTTP 402 challenge confirms the exact requirements before an authorized payment.

POST https://signalharness.ai/api/agent/services/jsonl_normalize_validate/invoke

Purpose

Parses bounded JSON Lines deterministically, retains rejected lines, and emits canonical JSON records with source line numbers.

This service applies bounded processing to the supplied input. Review its schema, result fields, and limits for the exact supported capability.

Inputs

Request fields and validation limits
FieldTypeRequiredLimits
textstringRequiredMinimum length 1; Maximum length 65536
blankLinePolicystringOptionalAllowed: ignore, reject; Minimum length 6; Maximum length 6

Example request body

{
  "text": "{\"example\":1}\n{\"example\":2}"
}
View complete input schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "maxProperties": 2,
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "blankLinePolicy": {
      "type": "string",
      "enum": [
        "ignore",
        "reject"
      ],
      "minLength": 6,
      "maxLength": 6
    }
  }
}

Realistic output shape

Illustrative output from the canonical adapter fixture and schema. It is not a completed paid execution or a current live observation.

{
  "recordCount": 0,
  "validCount": 0,
  "invalidCount": 0,
  "records": [
    {
      "line": 1,
      "value": {},
      "canonical": "example"
    }
  ],
  "rejectedLines": [
    {
      "line": 1,
      "text": "Example caller-supplied content.",
      "error": "example"
    }
  ],
  "normalized": "example"
}
View complete output schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 6,
  "maxProperties": 6,
  "required": [
    "recordCount",
    "validCount",
    "invalidCount",
    "records",
    "rejectedLines",
    "normalized"
  ],
  "properties": {
    "recordCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 256
    },
    "validCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 256
    },
    "invalidCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 256
    },
    "records": {
      "type": "array",
      "minItems": 0,
      "maxItems": 256,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 3,
        "maxProperties": 3,
        "required": [
          "line",
          "value",
          "canonical"
        ],
        "properties": {
          "line": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4096
          },
          "value": {
            "type": [
              "object",
              "array",
              "string",
              "number",
              "boolean",
              "null"
            ]
          },
          "canonical": {
            "type": "string",
            "minLength": 1,
            "maxLength": 65536
          }
        }
      }
    },
    "rejectedLines": {
      "type": "array",
      "minItems": 0,
      "maxItems": 256,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 3,
        "maxProperties": 3,
        "required": [
          "line",
          "text",
          "error"
        ],
        "properties": {
          "line": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4096
          },
          "text": {
            "type": "string",
            "minLength": 0,
            "maxLength": 1024
          },
          "error": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        }
      }
    },
    "normalized": {
      "type": "string",
      "minLength": 0,
      "maxLength": 65536
    }
  }
}

Execution limits

  • MaxInputBytes: 524288
  • MaxOutputBytes: 1048576
  • MaxConcurrentExecutions: 6
  • MaxArtifacts: 0
  • MaxArtifactBytes: 0
  • RateLimitPerMinute: 90
  • MaxLines: 4096
  • MaxRows: 256
  • MaxNesting: 32

Timeout: 5000 ms. Full schemas are in OpenAPI.

Copyable unpaid request

This schema-valid request returns the canonical HTTP 402 challenge without executing the service. A payment-capable client validates the challenge, signs only with prior authority and budget, and retries the identical body.

curl -i -X POST https://signalharness.ai/api/agent/services/jsonl_normalize_validate/invoke \
  -H "Content-Type: application/json" \
  --data '{"text":"{\"example\":1}\n{\"example\":2}"}'

Continue with the paid-call walkthrough →