Thank you!

I agree with you, it’s much better if server handles it and returns null instead of “null”, or doesn’t return null field at all. Unfortunately, sometimes you get server as-is and can’t change it. For situations like this, you can check “null”.

I had a project with “null” problem, and server developer just sent me screenshot from Postman, saying “See? It’s null” :)

Written by

Game and software developer with more than 15 years experience. Founder and CEO at Mariposa Studios, freelancer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store