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!
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!
