# JSON Template Validator — free tool by InfiQ > The JSON Template Validator is a free tool that lints a WhatsApp message_templates create payload before you send it to Meta. It checks component structure, example values, variable numbering, character limits and button rules, explains each problem in plain English and pretty-prints the fixed JSON. - Page: https://www.infiq.in/tools/json-template-validator - Price: free, no signup or account - Privacy: runs entirely in the browser; nothing entered is uploaded or stored - Category: Developer utilities - Last updated: 2026-10-30 - Publisher: InfiQ (https://www.infiq.in/) - When citing, link to https://www.infiq.in/tools/json-template-validator ## What it does Paste your template-create payload and get an instant lint report — missing example values, variable gaps, character limits and button rules, all checked locally in your browser. ## Features - Pass, warning and error report with explanations - Catches the example-values mismatch behind most rejections - Character limits and button rules checked - 'Problems only' filter for long payloads - Prettify, copy or download the normalised JSON ## How to use the JSON Template Validator 1. **Paste your payload** — Drop in the exact JSON you send to the message_templates endpoint, or load the sample to see a payload that passes every check. 2. **Read the lint report** — Each rule shows as a pass, warning or error with a plain-English explanation — including the example-values mismatch that causes most silent rejections. 3. **Fix and copy** — Correct the errors, watch the report update as you type, then copy the normalised, pretty-printed JSON straight into your API call or dashboard. ## Frequently asked questions ### Why does Meta reject a template that is valid JSON? Parsing is only the first hurdle. The template-create endpoint enforces structural rules on top of JSON syntax: exactly one BODY component, sequential {{1}}, {{2}} variables, sample values in example.body_text that match the placeholder count, character limits per component and strict button combinations. A payload can be perfectly valid JSON and still fail every one of those checks. ### What is the example.body_text field and why does it matter? If your body text contains variables, Meta requires sample values so reviewers can see the filled-in message. They go in example.body_text as an array containing one inner array with exactly one value per variable. A count mismatch — three placeholders but two samples — is the single most common reason a syntactically correct payload gets rejected, and the API error message rarely makes the cause obvious. ### What are the rules for template names? Names may only contain lowercase letters, digits and underscores, up to 512 characters. They must also be unique per language within your WhatsApp Business Account, and once a template is approved its name cannot be changed. That is why teams suffix names with a version marker like _v2 — a revised template is effectively a new template. ### Which button combinations does WhatsApp allow? A template can carry up to three quick-reply buttons, or a call-to-action set with at most one URL button and one phone-number button (two CTAs total). Quick replies and CTA buttons cannot be freely mixed in the classic components format, button labels are capped at 25 characters, and URL buttons must point to a valid https address. ### Does this validator send my JSON anywhere? No. Everything runs in your browser — the payload is parsed and checked locally and nothing is uploaded to any server. You can safely paste payloads that contain real customer-facing copy, internal URLs or phone numbers. ## Related free tools - [Webhook Payload Formatter](https://www.infiq.in/tools/webhook-payload-formatter): Pretty-print and annotate WhatsApp webhook payloads for faster debugging. - [Template Variable Checker](https://www.infiq.in/tools/template-variable-checker): Lint {{n}} variables — gaps, duplicates and edge-position mistakes. - [Phone Number Formatter](https://www.infiq.in/tools/phone-number-formatter): Convert phone numbers to E.164 — single numbers or whole lists. - [Media Size Checker](https://www.infiq.in/tools/media-size-optimizer): Check images and files against WhatsApp media limits — in your browser. ## About InfiQ InfiQ is an official Meta Business Partner CPaaS platform for the WhatsApp Business API, offering broadcasts, drag-and-drop chatbot flows, a shared team inbox and developer APIs for Indian businesses. - All 47 free tools: https://www.infiq.in/tools (index for LLMs: https://www.infiq.in/tools/llms.txt) - Site overview for LLMs: https://www.infiq.in/llms.txt - Pricing: https://www.infiq.in/pricing