See title. When a user never modified their "about me" section the API doesn't return that, which then causes my parser to go wild returning errors. However, when a user has modified their "about me" section, then later on deleted it, the "about_me" shows up with nothing in it, but it can at least still be parsed. I would like to have the about me show up for every user, registered, unregistered, edited and unedited.
3 Answers
There are a great many fields on objects returned by the API that will be omitted if they are not set.
- The user fields you mentioned.
locked_date,bounty_date, etc. on questions and answers- a whole slew of
user_timelineandpost_timelinefields depending on the*_typeof each
... and many more.
We do this because omitting a field clearly indicates that it has no value, and isn't just populated with the "default". It also makes (human) reading returned values much easier, as you don't have to slog through a bunch of "blahblah": null lines.
Comments
There are lots more.
The problem is that having something blank doesn't convey that the user hasn't filled it in... just that it's blank.
I think it should stay the way it is.