DEV Community

Alexey Tukalo
Alexey Tukalo

Posted on • Originally published at linkedin.com

New approach for parsing and validation of JSON

In some sense, it was a crazy weekend.

An early Saturday morning, I decided to do some experiments with TypeScript mapped types. And in the blink of an eye, I have a prototype of an extremely simple typesafe parsing/validation library for TypeScript/JavaScript. It appears to be that the next couple of days were turned in my personal hackathon.

So I ended up with a package similar to well-known jsonschema. Still, more flexible, customizable and native for TypeScript so that your input data is simultaneously type-checked.

You can check out the package and documentation by the link.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay