ensure the json object has the fields