OMDb-API icon indicating copy to clipboard operation
OMDb-API copied to clipboard

Why not use null instead of N/A?

Open ghost opened this issue 5 years ago • 1 comments
trafficstars

Often when a field is missing data, it returns a string "N/A" instead of null. Isn't it better to use null when data is missing? If a field is always an integer (like metacritic score), I can't deserialize the field to an integer in my project, because the field might be a string ("N/A").

Is there a reason for the use of "N/A" as a string everywhere instead of null?

ghost avatar Nov 05 '20 13:11 ghost

This is being addressed in the new JSON response.

omdbapi avatar Dec 31 '20 18:12 omdbapi