Jared Nagle

Results 5 comments of Jared Nagle

Hey there, you can fine an existing JSON utility defined here https://zod.dev/api#json hope it's what you're after!

I don't think there is currently a json parser for strings, but I'm sure you could probably wrap the native JSON.parse method to achieve what you wanted, if so, you...

I wouldn't blink an eyelid at coerce simple calling JSON.parse internally and propagating the error zod-like. Then passing the output to the actual z.json() schema.

On the surface, it feels useful, but in reality I find most of the time other frameworks are doing the parsing of stringified JSON for me. db clients, http libraries,...

@KyryloKupin backpedaling all the advances of modern node module resolution to support a single library and lock yourself into a sub-standard algorithm doesn't quite sit right with me. I'm keen...