<?xml version="1.0" encoding="US-ASCII"?>
<!-- DFIN New ActiveDisclosure (SM) XBRL Linkbase Document - http://www.dfinsolutions.com/ -->
<!-- Creation Date :2023-09-12T14:40:54.8034+00:00 -->
<!-- Copyright (c) 2023 Donnelly Financial Solutions, Inc. All Rights Reserved. -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple"/>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/PvpAdjustmentsOnly" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#PvpAdjustmentsOnly" xlink:type="simple"/>
  <link:definitionLink xlink:type="extended" xlink:role="http://xbrl.sec.gov/ecd/role/PvpAdjustmentsOnly">
    <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#ecd_AllAdjToCompMember" xlink:label="ecd_AllAdjToCompMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsAggregateValueForStockAwardsIncludedInSctTotalForTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForStockAwardsAggregateValueForStockAwardsIncludedInSctTotalForTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsFairValueAtYearEndOfAwardsGrantedDuringTheCoveredFiscalYearThatWereOutstandingAndUnvestedAtTheCoveredFiscalYearEndMember" xlink:label="jbss_AdjustmentsForStockAwardsFairValueAtYearEndOfAwardsGrantedDuringTheCoveredFiscalYearThatWereOutstandingAndUnvestedAtTheCoveredFiscalYearEndMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearThatWereOutstandingAndUnvestedAtTheCoveredFiscalYearEndMember" xlink:label="jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearThatWereOutstandingAndUnvestedAtTheCoveredFiscalYearEndMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsVestingDateFairValueOfAwardGrantedAndVestedDuringTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForStockAwardsVestingDateFairValueOfAwardGrantedAndVestedDuringTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearForWhichVestingConditionsWereSatisfiedDuringTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearForWhichVestingConditionsWereSatisfiedDuringTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearThatFailedToMeetTheApplicableVestingConditionsDuringTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearThatFailedToMeetTheApplicableVestingConditionsDuringTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForStockAwardsDividendsOrOtherEarningsPaidOnAwardInTheCoveredFiscalYearPriorToVestingIfNotOtherwiseIncludedInTheSctTotalForTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForStockAwardsDividendsOrOtherEarningsPaidOnAwardInTheCoveredFiscalYearPriorToVestingIfNotOtherwiseIncludedInTheSctTotalForTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForDefinedBenefitPensionPlansAggregateChangeInActuarialPresentValueIncludedInSctTotalForTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForDefinedBenefitPensionPlansAggregateChangeInActuarialPresentValueIncludedInSctTotalForTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForDefinedBenefitPensionPlansServiceCostForTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForDefinedBenefitPensionPlansServiceCostForTheCoveredFiscalYearMember"/>
    <link:loc xlink:type="locator" xlink:href="jbss-20230912.xsd#jbss_AdjustmentsForDefinedBenefitPensionPlansPriorServiceCostForTheCoveredFiscalYearMember" xlink:label="jbss_AdjustmentsForDefinedBenefitPensionPlansPriorServiceCostForTheCoveredFiscalYearMember"/>
    <link:definitionArc xlink:type="arc" order="0" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsAggregateValueForStockAwardsIncludedInSctTotalForTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="1" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsFairValueAtYearEndOfAwardsGrantedDuringTheCoveredFiscalYearThatWereOutstandingAndUnvestedAtTheCoveredFiscalYearEndMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="2" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearThatWereOutstandingAndUnvestedAtTheCoveredFiscalYearEndMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="3" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsVestingDateFairValueOfAwardGrantedAndVestedDuringTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="4" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearForWhichVestingConditionsWereSatisfiedDuringTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="5" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsGrantedInAnyPriorFiscalYearThatFailedToMeetTheApplicableVestingConditionsDuringTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="6" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForStockAwardsDividendsOrOtherEarningsPaidOnAwardInTheCoveredFiscalYearPriorToVestingIfNotOtherwiseIncludedInTheSctTotalForTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="7" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForDefinedBenefitPensionPlansAggregateChangeInActuarialPresentValueIncludedInSctTotalForTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="8" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForDefinedBenefitPensionPlansServiceCostForTheCoveredFiscalYearMember" priority="2" use="optional"/>
    <link:definitionArc xlink:type="arc" order="9" xbrldt:closed="false" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="ecd_AllAdjToCompMember" xlink:to="jbss_AdjustmentsForDefinedBenefitPensionPlansPriorServiceCostForTheCoveredFiscalYearMember" priority="2" use="optional"/>
  </link:definitionLink>
</link:linkbase>
