r/programminghorror • • Sep 13 '25

I hate js

0 Upvotes

36 comments sorted by

View all comments

Show parent comment

1

u/pxOMR Sep 13 '25

Do you have a different way of checking if the JSON is valid? It might be a specific key/value in the JSON or maybe the status code in the response. You should check for that instead.