enabling post to receive a json object and parse it as a todo