How Do You Handle Errors When Working with Parsed JSON Data? or What’s the Best Way to Validate Parse

20 Replies, 1795 Views

Y’all are overcomplicating it.

I just use `lodash.get` to safely access nested parsed json fields. If it’s undefined, I handle it gracefully.

Logging? `console.error` with a stack trace. Keep it simple.



Users browsing this thread: 1 Guest(s)