I have a Make.com scenario where I’m fetching data from a Google Gemini AI module. The AI’s output is a text string that begins with json\n{...}
.
I’ve attempted to clean this output using a Text parser
module with the Match pattern
action (using the pattern \{.*
) specifically to extract only the JSON object portion ({...}
).
However, when I pass the result from the Text parser
to a Parse JSON
module, I consistently get a DataError: Source is not valid JSON.
Upon inspecting the input of the Parse JSON
module, it appears to be receiving the original raw data from the AI module (still prefixed with json\n
) or, in some instances, the input log shows Data size: 0
even if a preview of the incorrect string is visible
KVC DataError Source is not valid JSON blueprint.json (29.4 KB)