JSON candidate list

json-candidate-list · version 1.0.0 · JSON & JSONL · free, no key needed

Find and rank JSON object/array candidates in prose and Markdown fences (quotes and lists too) with exact raw spans.

Use when you need to: find json objects embedded in an llm answer · pick the best json candidate from model output · locate json snippets in markdown and prose with offsets.

Decide before calling

Read the versioned contract and the supported scope below. Reuse json-candidate-list@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use json-candidate-list@1.0.0 for find json objects embedded in an llm answer. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "Sure! {\"a\": 1} is what you need."
}

Response:

{
  "result": {
    "candidates": [
      {
        "rank": 1,
        "source": "prose",
        "fence_index": null,
        "start": 6,
        "end": 14,
        "start_line": 1,
        "end_line": 1,
        "text": "{\"a\": 1}",
        "contiguous": true,
        "top_level": "object",
        "complete": true,
        "incomplete_reason": null,
        "valid_json": true,
        "json_error": null,
        "repair": null
      }
    ],
    "candidate_count": 1,
    "truncated": false
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "json-candidate-list",
  "version": "1.0.0",
  "input": {
    "text": "Sure! {\"a\": 1} is what you need."
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/json-candidate-list/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"Sure! {\"a\": 1} is what you need."}'

The machine-readable contract is at /v1/tools/json-candidate-list/versions/1.0.0.

CLI

node cli.mjs run json-candidate-list 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.