Webhook를 통해 JSON 문자열 검증
중급
이것은Building Blocks분야의자동화 워크플로우로, 6개의 노드를 포함합니다.주로 Code, Webhook, RespondToWebhook 등의 노드를 사용하며. Webhook을 통해 JSON 문자열��인
사전 요구사항
- •HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
사용된 노드 (6)
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "6GzSyLakqBN2hYIe",
"meta": {
"instanceId": "1777696fb9fddfee653e70940936c2b1e28ba1f1bde53b7182fbd6eb01988706"
},
"name": "JSON String Validator via Webhook",
"tags": [],
"nodes": [
{
"id": "72785a1d-32f6-4f0d-a412-5327c059ddd3",
"name": "JSON 문자열 수신",
"type": "n8n-nodes-base.webhook",
"position": [
-680,
-140
],
"webhookId": "2604aa77-b575-4c3f-b1df-feab9c775603",
"parameters": {
"path": "validate-json-string",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "940b04da-3f16-434d-8181-9452dd3ba007",
"name": "결과로 Webhook 응답",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
100,
-140
],
"parameters": {
"options": {},
"respondWith": "allIncomingItems"
},
"typeVersion": 1.2
},
{
"id": "4546866f-9376-47cf-ac19-caf0eb197cca",
"name": "코드: JSON 문자열 검증",
"type": "n8n-nodes-base.code",
"position": [
-300,
-140
],
"parameters": {
"jsCode": "// This node validates if the 'jsonString' in the webhook body is valid JSON.\n// It returns 'valid: true' or 'valid: false' along with an error message if invalid.\n\nconst results = [];\n\nfor (const item of $input.all()) {\n try {\n // Attempt to parse the jsonString from the webhook body\n // Ensure 'jsonString' exists before attempting to parse\n if (item.json.body && typeof item.json.body.jsonString === 'string') {\n JSON.parse(item.json.body.jsonString);\n results.push({ json: { valid: true } });\n } else {\n // Handle cases where jsonString is missing or not a string\n results.push({ json: { valid: false, error: \"Input 'jsonString' is missing or not a string.\" } });\n }\n } catch (e) {\n // If parsing fails, push the error message\n results.push({ json: { valid: false, error: e.message } });\n }\n}\n\nreturn results;"
},
"typeVersion": 2
},
{
"id": "52ea0a9b-863d-4d09-b96b-ab707571738b",
"name": "노트: Webhook 입력",
"type": "n8n-nodes-base.stickyNote",
"position": [
-760,
-360
],
"parameters": {
"width": 280,
"height": 380,
"content": "## Webhook Input\n\nThis node listens for incoming POST requests. It expects a JSON body containing a single property: `jsonString` (the string you wish to validate as JSON)."
},
"typeVersion": 1
},
{
"id": "f3f93504-93b2-40e9-93e6-45366a681ac0",
"name": "노트: JSON 검증 로직",
"type": "n8n-nodes-base.stickyNote",
"position": [
-420,
-320
],
"parameters": {
"color": 2,
"width": 350,
"height": 360,
"content": "## JSON Validation Logic\n\nThis node contains custom JavaScript code to parse the `jsonString` from the webhook input. It returns `valid: true` if successful, or `valid: false` with an `error` message if parsing fails."
},
"typeVersion": 1
},
{
"id": "e8632087-424b-40b4-a894-301885137f49",
"name": "노트: Webhook 응답",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-320
],
"parameters": {
"color": 3,
"width": 350,
"height": 360,
"content": "## Webhook Response\n\nThis node sends the validation result (whether the `jsonString` was valid JSON or not, including an error if applicable) back to the system that triggered the webhook."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ecec4bf1-c92e-485f-9f8f-fc98441310eb",
"connections": {
"4546866f-9376-47cf-ac19-caf0eb197cca": {
"main": [
[
{
"node": "940b04da-3f16-434d-8181-9452dd3ba007",
"type": "main",
"index": 0
}
]
]
},
"72785a1d-32f6-4f0d-a412-5327c059ddd3": {
"main": [
[
{
"node": "4546866f-9376-47cf-ac19-caf0eb197cca",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 빌딩 블록
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
웹훅을 통해 ScreenshotMachine API를 사용하여 필요에 따라 웹사이트 스크린샷 생성
웹훅을 통해 ScreenshotMachine API를 사용하여 필요에 따라 웹사이트 스크린샷 생성
If
Code
Webhook
+
If
Code
Webhook
12 노드ist00dent
빌딩 블록
Webhook을 통해 콘텐츠 요약 생성기 (ApyHub)
Webhook을 통해 내용 요약 생성기 (ApyHub)
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
8 노드ist00dent
빌딩 블록
TimeZoneDB API를 통한 시간대 변환 통합
TimeZoneDB API를 통합하여 시간대를 변환합니다.
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
6 노드ist00dent
빌딩 블록
ExchangeRate.host를 통해 Webhook를 사용하여 화폐 변환
ExchangeRate.host를 통해 Webhook를 사용하여 화폐 변환
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
6 노드ist00dent
빌딩 블록
Webhook을 통해 IP 지리적 위치 조사
IP-API.com을 통해 Webhook를 사용하여 IP 위치 정보 확인
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
6 노드ist00dent
빌딩 블록
day9_암호화폐 업데이트 수신
CoinGecko를 사용한 암호화폐 시장 분석: 변동성 지표 및 투자 신호
If
Set
Switch
+
If
Set
Switch
26 노드ist00dent
금융
워크플로우 정보
난이도
중급
노드 수6
카테고리1
노드 유형4
저자
ist00dent
@ist00dentI’m a dedicated automation engineer passionate about no-code and low-code solutions. I design and implement robust n8n workflows—integrating APIs, databases, and messaging—to eliminate manual tasks and accelerate delivery. Leveraging Python and C#, I build scalable, adaptable automations that empower teams to focus on high-value work.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유