🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

JSON Utils

by @kikikari

Robust JSON parsing and validation with Pydantic schemas, JSON Schema validation, batch processing, and automatic JSON repair for LLM outputs. Use when Codex...

💡 Examples

from json_processor import parse_json, parse_and_validate, validate_tool_call
from pydantic import BaseModel

Einfaches Parsing mit Auto-Reparatur

result = parse_json('{"name": "test", "value": 123,}') # trailing comma OK

Mit Pydantic-Validierung

class ToolCall(BaseModel): tool: str arguments: dict = {}

llm_output = '{"tool": "search", "arguments": {"q": "hello"},}' validated = parse_and_validate(llm_output, ToolCall)

View on ClawHub
TERMINAL
clawhub install json-utils

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →