Converting api data to a zod object

Hi. currently trying to build a lil poke app using the nextjs app directory, typescript, and zod. What's the quickest way to convert json to a zod object because the pokeapi data for ONE pokemon looks... scary
Solution:
JSON to Zod Schema
An online playground to convert JSON to Zod Schema
Jump to solution
2 Replies
craigcaski
craigcaskiβ€’2y ago
ChatGPT?
Solution
Sylte
Sylteβ€’2y ago
JSON to Zod Schema
An online playground to convert JSON to Zod Schema
Want results from more Discord servers?
Add your server