Feature request: JSON-escape filter for variables (or a Transform step)
-
Hi!
Me again… I’ve hit one thing I can’t solve with the steps currently available, and I wanted to ask if it’s something you’d consider adding.The problem: I’m passing a large scraped text blob (Firecrawl markdown, roughly 20,000 characters) into the body of an HTTP Request step. The body is JSON. The markdown contains double quotes, backslashes, and newlines — which break the JSON string it’s embedded in, and the request fails before it’s even sent (“failed to fetch”). I can only pass short, clean values right now.
What would solve it — either of these, whichever fits the plugin better:
- A variable filter — so when you insert a variable via the {} data picker, you could optionally apply something like
{{ firecrawl.json.data.markdown | json_escape }}. That filter would escape"→\",\→\\, and newlines →\n, making the value safe inside a JSON string. - A Transform step — a small step that takes an input value, applies a chosen transformation (JSON escape / URL encode / truncate to N chars), and outputs the result to a new variable later steps can reference.
The first would be my preference if it’s not too much bother, since it keeps the workflow diagram tidy — but honestly either would work, and I’d trust your judgement on which fits better with how Meow is designed.
The workflow it’s for, in case it helps:
Webhook → Firecrawl (scrape page) → Gemini (write article from scraped content) → Create Post (WordPress draft).It’s all working right now when I pass a short value — I’ve just hit the length/escaping wall with the full scraped page.
Thanks again for building it — genuinely appreciate the work.
- A variable filter — so when you insert a variable via the {} data picker, you could optionally apply something like
You must be logged in to reply to this topic.