{"version":"v1","id":"webhook-payload-inspector","matrix":"workflows","status":"live","updated":"2026-11-27","title":{"en":"Webhook Payload Inspector & JSON Path Finder","zh":"Webhook 数据包解析与 JSONPath 提取器"},"h1":{"en":"Webhook Payload Inspector & JSON Path Finder","zh":"Webhook 数据包解析与字段路径提取器"},"description":{"en":"Paste a Stripe, GitHub, Shopify or Typeform payload: get a collapsible tree, one-click paths for every automation platform, and an in-browser POST tester.","zh":"粘贴 Stripe、GitHub、Shopify 或 Typeform 的真实回调数据：结构树、多平台字段路径与浏览器内 POST 测试一次到位。"},"answer":{"en":"Sogoh parses the payload locally: click any field to copy its JSONPath, n8n expression ($json.body.…), Make path, jq filter, JavaScript and Python accessor. The tester sends the POST straight from your browser, so a CORS-blocked target reports status 0 instead of a fake success.","zh":"Sogoh 的解析器全程在浏览器本地运行：点任意字段即可复制 JSONPath、n8n 表达式（$json.body.…）、Make 路径、jq、JavaScript 与 Python 取值写法。测试器直接由浏览器发出 POST，目标未开 CORS 时会明确显示状态码 0，而不是假装成功。"},"keywords":{"en":["webhook tester","webhook inspector","webhook payload inspector","json path finder","jsonpath evaluator online","webhook debugger","test webhook post","webhook tester with response","n8n webhook json body path","n8n expression json path","make mapping path","integromat mapping array path","zapier webhook json fields","stripe webhook payload example","github webhook payload example","shopify order webhook payload","typeform webhook payload","copy jsonpath","json field path extractor","webhook parser online"],"zh":["webhook 测试工具","webhook 调试","webhook 数据包解析","webhook 字段路径","JSON 路径提取","JSONPath 在线测试","JSONPath 提取器","n8n 表达式路径","n8n webhook body","Make 映射路径","Integromat 数组路径","Zapier webhook 字段","Stripe webhook 示例","GitHub webhook 数据","Shopify 订单 webhook","Typeform 表单回调","在线 JSON 查看器","接口回调调试"]},"formula":[{"title":{"en":"Paste the payload, or load a real one","zh":"粘贴数据包，或直接加载真实示例"},"body":{"en":"The editor accepts any JSON body up to 256 KB. Stripe, GitHub, Shopify, Typeform and n8n Webhook-output presets are built in, with the nesting those providers actually send. Parsing runs in the page; a syntax error reports the exact line and column and never wipes the rest of the tool.","zh":"编辑器接受任意 JSON body，上限 256 KB。内置 Stripe、GitHub、Shopify、Typeform 与 n8n Webhook 输出模板，保留这些平台真实的嵌套结构。解析在页面内完成；语法错误会精确到行列，不会让整个工具崩掉。"}},{"title":{"en":"Click a field and read the platform rules","zh":"点击字段，看懂各平台的写法规则"},"body":{"en":"JSONPath follows RFC 9535: dot shorthand for plain names, $['key'] for dots or spaces, [0] for arrays. n8n’s Webhook node nests the body under $json.body, so Stripe email is {{ $json.body.data.object.customer_details.email }}; after an HTTP Request or Set node it starts at $json. Make uses module number plus a dot path and counts array items from 1. jq, JavaScript and Python rows are generated from the same segments.","zh":"JSONPath 按 RFC 9535：普通名字用点号，含点号或空格用 $['key']，数组用 [0]。n8n 的 Webhook 节点把 body 放在 $json.body，所以 Stripe 邮箱是 {{ $json.body.data.object.customer_details.email }}；经过 HTTP Request 或 Set 节点后从 $json 开始。Make 是「模块编号 + 点号路径」，数组下标从 1 开始。jq、JavaScript 与 Python 行由同一组路径段生成。"}},{"title":{"en":"Test the endpoint with the real bytes","zh":"用真实数据包测试地址"},"body":{"en":"The tester POSTs the exact editor contents with your headers and reports status, latency, response size and body. A JSON POST triggers a CORS preflight; if the target does not answer OPTIONS with Access-Control-Allow-Origin, the browser hides the response and the tool shows status 0 plus the cURL equivalent. n8n’s Webhook node allows all origins by default, but most production endpoints do not.","zh":"测试器把编辑器里的原始内容连同自定义请求头发出去，返回状态码、耗时、响应大小与响应体。JSON POST 会触发 CORS 预检；目标若没有用 Access-Control-Allow-Origin 回应 OPTIONS，浏览器就读不到响应，工具会显示状态码 0 并给出等价 cURL。n8n Webhook 节点默认允许所有来源，生产接口通常不会。"}},{"title":{"en":"Verify the paths before shipping","zh":"上线前验证路径"},"body":{"en":"The JSONPath tester runs a documented subset inline: $, .name, ['name'], [0], [-1], [*], ..name and ..*. Filters are rejected with an explanation rather than silently returning wrong nodes. Every path builder and the parser are covered by npm run test:calc, so the copy buttons, API and page cannot drift apart.","zh":"JSONPath 测试器在页面内运行一个有明确边界的子集：$、.name、['name']、[0]、[-1]、[*]、..name 与 ..*。过滤器会明确报「不支持」，而不是悄悄返回错误节点。所有路径生成与解析逻辑都由 npm run test:calc 覆盖，复制按钮、API 与页面不会各说各话。"}}],"faq":[{"q":{"en":"Does this upload my webhook payload?","zh":"这个工具会上传我的 Webhook 数据吗？"},"a":{"en":"No. Parsing, tree rendering, path extraction and the JSONPath tester run in the page with bundled JavaScript. There is no upload endpoint, no login and no storage. The only network request is the test POST you explicitly trigger, which goes directly from your browser to the URL you typed.","zh":"不会。解析、结构树、路径提取与 JSONPath 测试都在页面内用打包好的 JavaScript 完成：没有上传接口、不需要登录、不做存储。唯一的外发请求是你主动点击的测试 POST，由浏览器直接发往你填写的地址。"}},{"q":{"en":"Why does the tester return status 0 or “Failed to fetch”?","zh":"为什么测试返回状态码 0 或「Failed to fetch」？"},"a":{"en":"A browser will not let a page read a cross-origin response unless the target allows it. A JSON POST is not a “simple” request, so the browser sends an OPTIONS preflight first; if the webhook does not answer with Access-Control-Allow-Origin, the response is invisible even when the workflow ran. Status 0 also covers DNS, TLS and offline failures. Use the platform’s test URL, enable CORS on the endpoint, or copy the cURL command and run it from a terminal.","zh":"浏览器不允许页面读取跨域响应，除非目标明确放行。JSON POST 不属于「简单请求」，浏览器会先发 OPTIONS 预检；Webhook 若没有返回 Access-Control-Allow-Origin，即使流程已经执行，页面也读不到响应。状态码 0 还包括 DNS、TLS 与断网失败。可以改用平台测试地址、在接口上开启 CORS，或复制 cURL 到终端执行。"}},{"q":{"en":"Why is the n8n path $json.body… and when should it be $json…?","zh":"为什么 n8n 路径是 $json.body…，什么时候该用 $json…？"},"a":{"en":"The n8n Webhook node exposes the request as $json with body, headers, params and query. A Stripe field therefore sits at $json.body.data.object. After an HTTP Request node returns parsed JSON, or a Set node rewrites the item, the same field is at the root: $json.data.object. The toggle above the path list switches the whole panel between both conventions.","zh":"n8n 的 Webhook 节点把请求暴露成 $json，里面是 body、headers、params 与 query。所以 Stripe 字段位于 $json.body.data.object。经过 HTTP Request 节点返回解析后的 JSON，或 Set 节点重写数据后，同一字段就在根上：$json.data.object。路径列表上方的开关可以在两种口径间切换整块结果。"}},{"q":{"en":"Does it support JSONPath filters such as $..book[?@.price<10]?","zh":"支持 $..book[?@.price<10] 这类 JSONPath 过滤器吗？"},"a":{"en":"Not in the inline tester. It supports names, indices (including negative), wildcards, recursive descent and bracket notation, and rejects filters, slices and function extensions with an explicit message. Filters are solved better by jq, which is why the tool gives you a jq path for every field instead of pretending a partial evaluator is complete.","zh":"页面内的测试器不支持。它支持名字、索引（含负数）、通配、递归下降与方括号写法；过滤器、切片与函数扩展会明确提示不支持。这类查询用 jq 更合适，所以工具为每个字段同时给出 jq 写法，而不是让一个半成品求值器假装完整。"}},{"q":{"en":"What is the Zapier equivalent of a JSON path?","zh":"Zapier 里对应的「路径」是什么？"},"a":{"en":"Zapier has no path syntax. A Catch Hook trigger parses the JSON into named fields, and you select the field in the mapper; nested arrays usually need a looping step. The tool says this explicitly instead of inventing a Zapier path format that would not work.","zh":"Zapier 没有路径语法。Catch Hook 触发器把 JSON 解析成命名字段，在字段映射器里选择；嵌套数组通常要加循环步骤。工具会明确说明这一点，而不是编一个根本用不了的 Zapier 路径格式。"}},{"q":{"en":"Which payload examples are built in, and are they real?","zh":"内置的数据包示例有哪些，是真实数据吗？"},"a":{"en":"Stripe payment_intent.succeeded, GitHub push, Shopify order created, Typeform form_response and an n8n Webhook node output. Field names and nesting follow each provider’s official payload reference; IDs, amounts and timestamps are illustrative. No customer data is included, and the check date is printed above the editor.","zh":"Stripe payment_intent.succeeded、GitHub push、Shopify 新订单、Typeform form_response，以及 n8n Webhook 节点输出。字段名与嵌套遵循各平台官方 payload 文档；ID、金额与时间是示例值。不含任何客户数据，核对日期印在编辑器上方。"}}],"sources":[{"label":"IETF RFC 9535 — JSONPath: Query Expressions for JSON","url":"https://www.rfc-editor.org/rfc/rfc9535.html"},{"label":"n8n docs — Webhook node (body, headers, params, query)","url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/"},{"label":"n8n docs — Expressions ($json and dot/bracket notation)","url":"https://docs.n8n.io/code/expressions/"},{"label":"Make docs — get() and mapping paths (array index starts at 1)","url":"https://help.make.com/general-functions"},{"label":"jq 1.8 manual — object/array filters and recursive descent","url":"https://jqlang.org/manual/"},{"label":"MDN — Cross-Origin Resource Sharing (CORS)","url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS"},{"label":"Stripe — Webhook events and payloads","url":"https://docs.stripe.com/webhooks"},{"label":"GitHub — Webhook events and payloads","url":"https://docs.github.com/en/webhooks/webhook-events-and-payloads"},{"label":"Shopify — Webhooks","url":"https://shopify.dev/docs/apps/build/webhooks"},{"label":"Typeform — Webhooks reference","url":"https://www.typeform.com/developers/webhooks/"},{"label":"Zapier — Webhooks integration (Catch Hook)","url":"https://zapier.com/apps/webhook/integrations"}],"localized":{"en":{"url":"https://www.sogoh.com/tools/webhook-payload-inspector/"},"zh":{"url":"https://www.sogoh.com/zh/tools/webhook-payload-inspector/"}},"license":"Free to reuse with attribution and a link to the source page."}