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

20 Replies, 1898 Views

Wow, thanks for all the tips!

I tried AJV and it’s already saving me so much headache. Still getting used to the schema syntax, though.

Also, the `?.` trick is genius—no more crashing on missing fields.

One follow-up: how do you handle *dynamic* parsed json where the structure isn’t always predictable? Like, optional nested objects?

Messages In This Thread



Users browsing this thread: 1 Guest(s)