ForbesLindesay / funtypes

Runtime validation for static types
MIT License
29 stars 4 forks source link

Add JSON.stringify / JSON.parse utilities #22

Closed ForbesLindesay closed 2 years ago

ForbesLindesay commented 3 years ago

Ideally you want to be able to parse and validate strings as a single action.

Requested at: https://github.com/pelotom/runtypes/issues/111

ForbesLindesay commented 2 years ago

The ParsedJsonString type in https://github.com/ForbesLindesay/funtypes-schemas should address this need.