Can you transform JSON async (like you can with HTMLRewriter)?
I have a lot of JSON data that I need to transform to a common format. Is there anything like HTMLRewriter, but for JSON? The JSON payload is getting too big to be stored in mem in my worker
7 Replies
CF doesn’t have a product for it, but that doesn’t mean you can’t find a package to do it, or build it yourself
Thanks! Any pointers where I can find such package?
NPM or DenoLand. Deno wouldn't work out of the box, but you could at least derive some inspiration from it
Though I haven't seen any personally
Ok, but I was hoping to find something I can use out of the box 🙂
Yeah, haven't seen anything like that
Just found this https://workers.tools/json-stream/
Worker Tools
JSON Stream
Utilities for working with streaming JSON in Worker Runtimes such as Cloudflare Workers, Deno Deploy and Service Workers.
I'll give it a try