// make.com integration
The AI JSON Parser module parses messy or AI-generated JSON in Make.com. It strips markdown code fences from ChatGPT, Claude or Gemini output, extracts the JSON block from surrounding prose, and repairs common issues that would otherwise break your scenario.
AI modules rarely return clean JSON. They wrap it in ```json fences, add explanations before and after, use smart quotes, or leave trailing commas. Make's built-in JSON parse module throws an error on all of these inputs, and your scenario stops.
This module cleans the text step by step before parsing:
```json ... ```) around the payload} and ]“ ” ‘ ’) with straight quotesTrue, False, None, NaN and undefined become valid JSON valuesIf a fix was applied, the output tells you exactly what happened.
| Field | Description | How to use it |
|---|---|---|
| Connection | Links the module to the CustomJS service | Select or create a connection using your API key |
| JSON Text | Raw text that should contain JSON | Map the output of an AI module (ChatGPT, Claude, Gemini) or any other text source. Code fences and surrounding prose are removed automatically |
| Strict mode (no content repairs) | Limits cleanup to structural steps | Boolean, default off. When on, only fence stripping, JSON block extraction and double-encoding unwrap are applied. Content repairs (smart quotes, trailing commas, Python literals like True, False, None) are skipped, and invalid JSON throws an error |
A typical ChatGPT response mapped into JSON Text:
Input:
Sure! Here is the extracted data:
```json
{
"name": "Acme Corp",
"active": True,
"tags": ["b2b", "enterprise",],
}
```
Let me know if you need anything else.
Output (Parsed JSON):
{
"name": "Acme Corp",
"active": true,
"tags": ["b2b", "enterprise"]
}
Repair Notes would list the removed code fence, the converted True literal and the removed trailing commas.
| Output | Description |
|---|---|
| Parsed JSON | The parsed result, ready to map into any following module |
| Was Repaired | Boolean, true if any cleanup or repair step changed the input |
| Repair Notes | An array of text entries describing exactly what was fixed |
See the Make.com integration overview for setup instructions, and check out the other utility modules: Group & Aggregate Array, Parse Localized Number, Format Date & Convert Timezone and File to Base64. More cleanup recipes are in Data cleanup snippets for Make.