Add function to skip fields with specified value in record to json