
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
n8n-nodes-json-parser
Advanced tools
n8n node for extracting and parsing JSON from text, including AI model outputs
An n8n community node for extracting and parsing JSON from text, especially useful for processing AI model outputs that often embed JSON within conversational responses or markdown formatting.
🎯 Multiple Extraction Methods
đź”§ Intelligent Parsing
🤖 AI-Ready
usableAsTool: true)n8n-nodes-json-parsercd /path/to/n8n
npm install n8n-nodes-json-parser
Add to your docker-compose.yml:
environment:
- N8N_COMMUNITY_PACKAGES_ENABLED=true
Then install via UI or exec into container.
{{ $json.text }})// Input from Gemini/GPT/Claude:
"Here's the analysis in JSON format:
```json
{
"sentiment": "positive",
"score": 0.85,
"keywords": ["innovation", "growth"]
}
I hope this helps!"
// Output: { "sentiment": "positive", "score": 0.85, "keywords": ["innovation", "growth"] }
#### Fix Malformed JSON
```javascript
// Input with issues:
'{
"name": "John",
"age": 30, // trailing comma
"city": "NYC",
}'
// Output (with Fix Common Issues enabled):
{
"name": "John",
"age": 30,
"city": "NYC"
}
Set Extraction Method to "All JSON Objects" and Output Mode to "New Items":
// Input:
"User 1: {"id": 1, "name": "Alice"}
User 2: {"id": 2, "name": "Bob"}"
// Output: Two separate items
// Item 1: {"id": 1, "name": "Alice"}
// Item 2: {"id": 2, "name": "Bob"}
| Parameter | Type | Default | Description |
|---|---|---|---|
| Source Field | string | {{ $json.text }} | Expression pointing to the text containing JSON |
| Extraction Method | select | Smart Detection | How to find JSON in the text |
| Output Mode | select | Replace Input | How to return the extracted data |
| On Error | select | Stop Workflow | Error handling behavior |
| Parameter | Type | Default | Description |
|---|---|---|---|
| Strict Mode | boolean | false | Only accept valid JSON (no fixing) |
| Fix Common Issues | boolean | true | Auto-fix quotes, commas, etc. |
| Allow JSON5 | boolean | false | Support relaxed JSON5 syntax |
| JSON Schema | json | - | Optional schema for validation |
{...} structure{...} structureWorkflow:
1. OpenAI Node → Generate structured data
2. JSON Parser → Extract JSON from response
3. Postgres Node → Store in database
Workflow:
1. Webhook Node → Receive mixed content
2. JSON Parser → Extract JSON payload
3. Transform Node → Process data
4. HTTP Request → Send to API
Workflow:
1. Read File → Load log file
2. Split in Batches → Process line by line
3. JSON Parser → Extract JSON from each line
4. Aggregate → Combine results
This node can be used as a tool by AI Agents:
The node includes AI-friendly descriptions for all parameters, making it easy for AI models to understand when and how to use it.
git clone https://github.com/jezweb/n8n-nodes-json-parser.git
cd n8n-nodes-json-parser
npm install
npm run build
npm link
cd ~/.n8n/custom
npm link n8n-nodes-json-parser
# Restart n8n
Pull requests are welcome! Please read our contributing guidelines and ensure:
MIT - See LICENSE file for details
Jeremy Dawes
FAQs
n8n node for extracting and parsing JSON from text, including AI model outputs
The npm package n8n-nodes-json-parser receives a total of 8 weekly downloads. As such, n8n-nodes-json-parser popularity was classified as not popular.
We found that n8n-nodes-json-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.