<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>224</ContextCount>
  <ElementCount>299</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>50</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-document-and-entity-information</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>001 - Statement - Consolidated Balance Sheets (Current Period Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-consolidated-balance-sheets-current-period-unaudited</Role>
      <ShortName>Consolidated Balance Sheets (Current Period Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>002 - Statement - Consolidated Balance Sheets (Current Period Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-consolidated-balance-sheets-current-period-unaudited-parentheticals</Role>
      <ShortName>Consolidated Balance Sheets (Current Period Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>003 - Statement - Consolidated Statements of Earnings (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-consolidated-statements-of-earnings-unaudited</Role>
      <ShortName>Consolidated Statements of Earnings (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>004 - Statement - Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-consolidated-statements-of-comprehensive-income-unaudited</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>005 - Statement - Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-consolidated-statements-of-changes-in-stockholders-equity-unaudited-</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-consolidated-statements-of-cash-flows-unaudited</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>007 - Disclosure - Note 1 - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-1-basis-of-presentation</Role>
      <ShortName>Note 1 - Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>008 - Disclosure - Note 2 - Business Combinations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations</Role>
      <ShortName>Note 2 - Business Combinations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>009 - Disclosure - Note 3 - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-3-revenue-recognition</Role>
      <ShortName>Note 3 - Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>010 - Disclosure - Note 4 - Depreciation and Amortization Expense</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-4-depreciation-and-amortization-expense</Role>
      <ShortName>Note 4 - Depreciation and Amortization Expense</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>011 - Disclosure - Note 5 - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-5-earnings-per-share</Role>
      <ShortName>Note 5 - Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>012 - Disclosure - Note 6 - Share-based Compensation and Post-retirement Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-6-sharebased-compensation-and-postretirement-benefits</Role>
      <ShortName>Note 6 - Share-based Compensation and Post-retirement Benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>013 - Disclosure - Note 7 - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-7-income-taxes</Role>
      <ShortName>Note 7 - Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>014 - Disclosure - Note 8 - New Accounting Pronouncements and Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-8-new-accounting-pronouncements-and-policies</Role>
      <ShortName>Note 8 - New Accounting Pronouncements and Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>015 - Disclosure - Note 9 - Long-term Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-9-longterm-debt</Role>
      <ShortName>Note 9 - Long-term Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>016 - Disclosure - Note 10 - Inventory</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-10-inventory</Role>
      <ShortName>Note 10 - Inventory</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>017 - Disclosure - Note 11 - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-11-segment-information</Role>
      <ShortName>Note 11 - Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>018 - Disclosure - Note 12 - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets</Role>
      <ShortName>Note 12 - Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>019 - Disclosure - Note 13 - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-13-investments</Role>
      <ShortName>Note 13 - Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>020 - Disclosure - Note 14 - Accumulated Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-14-accumulated-other-comprehensive-income-loss</Role>
      <ShortName>Note 14 - Accumulated Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>021 - Disclosure - Note 15 - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases</Role>
      <ShortName>Note 15 - Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>022 - Disclosure - Note 16 - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-16-related-parties</Role>
      <ShortName>Note 16 - Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>023 - Disclosure - Note 2 - Business Combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations-tables</Role>
      <ShortName>Note 2 - Business Combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>024 - Disclosure - Note 3 - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-3-revenue-recognition-tables</Role>
      <ShortName>Note 3 - Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-3-revenue-recognition</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>025 - Disclosure - Note 5 - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-5-earnings-per-share-tables</Role>
      <ShortName>Note 5 - Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-5-earnings-per-share</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>026 - Disclosure - Note 6 - Share-based Compensation and Post-retirement Benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-6-sharebased-compensation-and-postretirement-benefits-tables</Role>
      <ShortName>Note 6 - Share-based Compensation and Post-retirement Benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-6-sharebased-compensation-and-postretirement-benefits</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>027 - Disclosure - Note 10 - Inventory (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-10-inventory-tables</Role>
      <ShortName>Note 10 - Inventory (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-10-inventory</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>028 - Disclosure - Note 11 - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-11-segment-information-tables</Role>
      <ShortName>Note 11 - Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-11-segment-information</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>029 - Disclosure - Note 12 - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets-tables</Role>
      <ShortName>Note 12 - Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>030 - Disclosure - Note 13 - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-13-investments-tables</Role>
      <ShortName>Note 13 - Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-13-investments</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>031 - Disclosure - Note 14 - Accumulated Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-14-accumulated-other-comprehensive-income-loss-tables</Role>
      <ShortName>Note 14 - Accumulated Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-14-accumulated-other-comprehensive-income-loss</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>032 - Disclosure - Note 15 - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases-tables</Role>
      <ShortName>Note 15 - Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-15-leases</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>033 - Disclosure - Note 2 - Business Combinations (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations-details-textual</Role>
      <ShortName>Note 2 - Business Combinations (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations-tables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>034 - Disclosure - Note 2 - Business Combinations - Purchase Price Allocation for Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations-purchase-price-allocation-for-acquisitions-details</Role>
      <ShortName>Note 2 - Business Combinations - Purchase Price Allocation for Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>035 - Disclosure - Note 2 - Business Combinations - Acquired Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations-acquired-intangible-assets-details</Role>
      <ShortName>Note 2 - Business Combinations - Acquired Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>036 - Disclosure - Note 2 - Business Combinations - Proforma Results from Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-2-business-combinations-proforma-results-from-acquisitions-details</Role>
      <ShortName>Note 2 - Business Combinations - Proforma Results from Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>037 - Disclosure - Note 3 - Revenue Recognition (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-3-revenue-recognition-details-textual</Role>
      <ShortName>Note 3 - Revenue Recognition (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-3-revenue-recognition-tables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>038 - Disclosure - Note 3 - Revenue Recognition - Contract Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-3-revenue-recognition-contract-liability-details</Role>
      <ShortName>Note 3 - Revenue Recognition - Contract Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>039 - Disclosure - Note 4 - Depreciation and Amortization Expense (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-4-depreciation-and-amortization-expense-details-textual</Role>
      <ShortName>Note 4 - Depreciation and Amortization Expense (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-4-depreciation-and-amortization-expense</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>040 - Disclosure - Note 5 - Earnings Per Share (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-5-earnings-per-share-details-textual</Role>
      <ShortName>Note 5 - Earnings Per Share (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-5-earnings-per-share-tables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>041 - Disclosure - Note 5 - Earnings Per Share - Calculation of EPS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-5-earnings-per-share-calculation-of-eps-details</Role>
      <ShortName>Note 5 - Earnings Per Share - Calculation of EPS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>042 - Disclosure - Note 6 - Share-based Compensation and Post-retirement Benefits (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-6-sharebased-compensation-and-postretirement-benefits-details-textual</Role>
      <ShortName>Note 6 - Share-based Compensation and Post-retirement Benefits (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-6-sharebased-compensation-and-postretirement-benefits-tables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>043 - Disclosure - Note 6 - Share-based Compensation and Post-retirement Benefits - Summary of Share-based Compensation Expense (Benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-6-sharebased-compensation-and-postretirement-benefits-summary-of-sharebased-compensation-expense-benefit-details</Role>
      <ShortName>Note 6 - Share-based Compensation and Post-retirement Benefits - Summary of Share-based Compensation Expense (Benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>044 - Disclosure - Note 7 - Income Taxes (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-7-income-taxes-details-textual</Role>
      <ShortName>Note 7 - Income Taxes (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-7-income-taxes</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>045 - Disclosure - Note 9 - Long-term Debt (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-9-longterm-debt-details-textual</Role>
      <ShortName>Note 9 - Long-term Debt (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-9-longterm-debt</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>046 - Disclosure - Note 10 - Inventory - Summary of Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-10-inventory-summary-of-inventories-details</Role>
      <ShortName>Note 10 - Inventory - Summary of Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>047 - Disclosure - Note 11 - Segment Information - Operations Information by Reporting Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-11-segment-information-operations-information-by-reporting-segment-details</Role>
      <ShortName>Note 11 - Segment Information - Operations Information by Reporting Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>048 - Disclosure - Note 12 - Goodwill and Intangible Assets (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets-details-textual</Role>
      <ShortName>Note 12 - Goodwill and Intangible Assets (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets-tables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>049 - Disclosure - Note 12 - Goodwill and Intangible Assets - Intangible Assets by Reporting Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets-intangible-assets-by-reporting-segment-details</Role>
      <ShortName>Note 12 - Goodwill and Intangible Assets - Intangible Assets by Reporting Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>050 - Disclosure - Note 12 - Goodwill and Intangible Assets - Goodwill by Reporting Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-12-goodwill-and-intangible-assets-goodwill-by-reporting-segment-details</Role>
      <ShortName>Note 12 - Goodwill and Intangible Assets - Goodwill by Reporting Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>051 - Disclosure - Note 13 - Investments (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-13-investments-details-textual</Role>
      <ShortName>Note 13 - Investments (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-13-investments-tables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>052 - Disclosure - Note 13 - Investments - Summary of Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-13-investments-summary-of-securities-details</Role>
      <ShortName>Note 13 - Investments - Summary of Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>053 - Disclosure - Note 13 - Investments - Held-to-maturity Securities by Contractual Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-13-investments-heldtomaturity-securities-by-contractual-maturity-details</Role>
      <ShortName>Note 13 - Investments - Held-to-maturity Securities by Contractual Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>054 - Disclosure - Note 14 - Accumulated Other Comprehensive Income (Loss) - Changes to the Components of Accumulated Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-14-accumulated-other-comprehensive-income-loss-changes-to-the-components-of-accumulated-other-comprehensive-loss-details</Role>
      <ShortName>Note 14 - Accumulated Other Comprehensive Income (Loss) - Changes to the Components of Accumulated Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-14-accumulated-other-comprehensive-income-loss-tables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>055 - Disclosure - Note 15 - Leases (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases-details-textual</Role>
      <ShortName>Note 15 - Leases (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-15-leases-tables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>056 - Disclosure - Note 15 - Leases - Components of Lease Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases-components-of-lease-expense-details</Role>
      <ShortName>Note 15 - Leases - Components of Lease Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>057 - Disclosure - Note 15 - Leases - Supplemental Balance Sheet Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases-supplemental-balance-sheet-information-related-to-leases-details</Role>
      <ShortName>Note 15 - Leases - Supplemental Balance Sheet Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>058 - Disclosure - Note 15 - Leases - Supplemental Cash Flow Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases-supplemental-cash-flow-information-related-to-leases-details</Role>
      <ShortName>Note 15 - Leases - Supplemental Cash Flow Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>059 - Disclosure - Note 15 - Leases - Maturities of Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-15-leases-maturities-of-lease-liabilities-details</Role>
      <ShortName>Note 15 - Leases - Maturities of Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="jjsf20230325_10q.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>060 - Disclosure - Note 16 - Related Parties (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.jjsnack.com/20230325/role/statement-note-16-related-parties-details-textual</Role>
      <ShortName>Note 16 - Related Parties (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.jjsnack.com/20230325/role/statement-note-16-related-parties</ParentRole>
      <Position>61</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 24 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual, us-gaap:CommonStockNoParValue, us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths, us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseYearFive, us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseYearFour, us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseYearThree, us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo, us-gaap:PreferredStockSharesIssued, us-gaap:ProceedsFromSaleAndMaturityOfMarketableSecurities, us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross, us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod, us-gaap:UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued, us-gaap:UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate -  jjsf20230325_10q.htm 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="jjsf20230325_10q.htm">jjsf20230325_10q.htm</File>
    <File>ex_505215.htm</File>
    <File>ex_505216.htm</File>
    <File>ex_505217.htm</File>
    <File>ex_505218.htm</File>
    <File>jjsf-20230325.xsd</File>
    <File>jjsf-20230325_cal.xml</File>
    <File>jjsf-20230325_def.xml</File>
    <File>jjsf-20230325_lab.xml</File>
    <File>jjsf-20230325_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="922">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
