How Do You Handle Missing or Incorrect REST API JSON Response Data Keys in Your Applications?

14 Replies, 1863 Views

Hey everyone,

So, I’ve been working with a bunch of REST APIs lately, and I keep running into this issue where the rest api json response data key is either missing or incorrect. Like, sometimes the key is just *poof* gone, or it’s named something totally different than what the docs say.

How do you guys handle this in your apps? Do you just hardcode fallbacks, or is there a smarter way to deal with it?

Also, what’s your go-to for validating rest api json response data keys? Do you use libraries, or do you roll your own checks?

Kinda curious how others deal with this mess lol.

Cheers!

Messages In This Thread
How Do You Handle Missing or Incorrect REST API JSON Response Data Keys in Your Applications? - by - 01-10-2024, 09:54 AM



Users browsing this thread: 1 Guest(s)