Doubt in the assignment work

I have been working on the assignment work given at the end of the webinar. I have created an array todos consisting of list of objects {task_, done_}. For the POST request when I try to push a {task:, done} to the todos array, I get a null object added at the end of the array. Same is the case for PATCH. Please help with the issue