{"uid":"cap_Oy8A32X-of-ETyoiL-VRS","slug":"json-guard-validate-pii-detect-json-650e880f","name":"JSON Guard — Validate & PII-Detect JSON","description":"Validates JSON, detects PII inside values, reports schema stats. Pipeline agents use this as a data-quality gate.","url":"https://shelf.thirdmade.net/probe/json-guard","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["json"],"properties":{"json":{"type":"string","description":"JSON text to validate"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ea1UEkZDVwna7lFLeeuzw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON string for correctness, detects PII within its values, and reports schema statistics for use as a data-quality gate.","exampleAgentPrompt":"Can you run this JSON through the json-guard validator and tell me if it's valid and whether it contains any PII? Here's the payload: {\"name\":\"John Doe\",\"email\":\"john@example.com\",\"age\":34}","exampleUseCases":[{"title":"Pre-storage PII compliance gate","prompt":"Before we write this user record to the database, scan this JSON for any PII fields and flag it if there's anything sensitive: {\"user_id\":\"u123\",\"full_name\":\"Jane Smith\",\"phone\":\"555-867-5309\",\"score\":98}"},{"title":"Pipeline data quality check","prompt":"I'm about to pass this JSON payload to the next stage of my ETL pipeline — can you validate it's well-formed and give me schema stats so I know what fields are present? Here's the JSON: {\"order_id\":\"ORD-991\",\"items\":[{\"sku\":\"ABC\",\"qty\":2}],\"total\":49.99}"},{"title":"Log sanitization before shipping","prompt":"We're about to ship this JSON event to our logging service — please check it for PII and let me know if we need to redact anything before it leaves: {\"event\":\"login\",\"timestamp\":\"2024-06-01T10:00:00Z\",\"user_email\":\"alice@corp.com\",\"ip\":\"192.168.1.1\"}"}],"resultDescription":"Returns a JSON object indicating whether the input is valid JSON, a list of detected PII fields or values (e.g. email addresses, phone numbers, SSNs) found within the payload, and schema statistics such as field counts, types, and structural summary.","failureModes":["Malformed or missing 'json' query parameter returns a validation error","Extremely large JSON payloads may be rejected or time out","Ambiguous values that resemble but aren't PII may produce false positives","Non-UTF-8 or binary-encoded strings may fail parsing","Network or upstream service errors return a 5xx response"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call JSON validation and PII scanning gate — especially in agentic pipelines where you want to catch malformed or sensitive data before it reaches storage, logging, or downstream APIs. Prefer it over manual regex checks or heavy-weight data-loss-prevention tools when you need a fast, single-call quality check that combines syntax validation with PII detection and schema statistics in one response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:31:15.923Z","isFirstParty":false}