A little cleanup and logging for unused fields in the input JSON for the write path