conclusion
never mind. the fields are marked as optional in the spec. it was late. sue me.
the q is left for reference
What is coming out:
{
"tags": [
"cakephp",
"fileupload",
"file-get-contents"
],
"answer_count": 0,
"favorite_count": 0,
"question_timeline_url": "/questions/3078600/timeline",
"question_comments_url": "/questions/3078600/comments",
"question_answers_url": "/questions/3078600/answers",
"question_id": 3078600,
"owner": {
"user_id": 371434,
"user_type": "unregistered",
"display_name": "Nick",
"reputation": 1,
"email_hash": "2960026756b3103492382b68085207bd"
},
"creation_date": 1277021683,
"last_activity_date": 1277021683,
"up_vote_count": 0,
"down_vote_count": 0,
"view_count": 0,
"score": 0,
"community_owned": false,
"title": "How to retrieve contents from a uploaded file."
}
Missing:
accepted_answer_id;
bounty_amount;
bounty_closes_date;
closed_date;
closed_reason;
migrated;
protected_date;
if these are omitted as nullable you should consider javascript clients that depend on a value to avoid extreme code bloat and performance hits in doing undefined checks on every expected field.
and if they are being omitted as nullable, why then are not the other 0
fields being rendered. Don't get me wrong, I want the structure rendered as advertised, just asking the logical next question.