Do you remember how 5-7 years ago everyone used Yup or Ajv and was genuinely happy about it? I have to admit half of the internet is still happy about it 🫡
Then "Parse, don't validate" came out and became a handbook for many developers, and then made it big in the JavaScript/TypeScript world as well. Thousands of schema libraries for parsing are proof 😁
Well... this is already solved and not why you opened the article. What's not solved is:
"Encode, don't stringify"
Or in other words NEVER use JSON.stringify in your code. - Yeah, this is a hot take now!






