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
Hello, I’m Allie!
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
DrKrall
DrKrallOP2y ago
Thanks! Any pointers where I can find such package?
Hello, I’m Allie!
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
DrKrall
DrKrallOP2y ago
Ok, but I was hoping to find something I can use out of the box 🙂
Hello, I’m Allie!
Yeah, haven't seen anything like that
DrKrall
DrKrallOP2y ago
Worker Tools
JSON Stream
Utilities for working with streaming JSON in Worker Runtimes such as Cloudflare Workers, Deno Deploy and Service Workers.
DrKrall
DrKrallOP2y ago
I'll give it a try
Want results from more Discord servers?
Add your server