Library / Building Blocks & Utilities
Building Blocks & Utilities
Validate JSON Strings via Webhook
When a JSON string is sent to the webhook, custom code tries to parse it and returns whether it is valid, with an error message if not.
What it does
## JSON Validation Logic This 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.
The steps
- Webhook: Receive JSON String
- Respond to Webhook with Result
- Code: Validate JSON String
Similar automations
Forms & SurveysGenerate Random Strings with an Interactive Form7 stepsBuilding Blocks & UtilitiesLearn JSON Basics with an Interactive n8n Tutorial10 stepsBuilding Blocks & UtilitiesGenerate JSON Output Formats for AI Agents with Mistral19 stepsBuilding Blocks & UtilitiesConvert Webhook JSON to XML4 steps