mapping fields to json object for update