v3.25.2
Shareholder Report, Average Annual Return (Details)
12 Months Ended 36 Months Ended 60 Months Ended 120 Months Ended
May 31, 2025
May 31, 2025
May 31, 2025
May 31, 2025
C000001874 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name High Yield Municipal Bond Fund (Class A/JHTFX)      
Average Annual Return, Percent (1.12%)   1.61% 2.09%
C000001876 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name High Yield Municipal Bond Fund (Class C/JCTFX)      
Average Annual Return, Percent 1.19%   1.69% 1.74%
C000193018 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name High Yield Municipal Bond Fund (Class R6/JCTRX)      
Average Annual Return, Percent 3.31%   2.65% 2.67%
C000178765 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name High Yield Municipal Bond Fund (Class I/JHYMX)      
Average Annual Return, Percent 3.09%   2.62% 2.65%
C000001877 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Municipal Opportunities Fund (Class A/TAMBX)      
Average Annual Return, Percent (1.54%)   0.66% 1.61%
C000193019 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Municipal Opportunities Fund (Class R6/JTMRX)      
Average Annual Return, Percent 2.65%   1.65% 2.16%
C000178766 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Municipal Opportunities Fund (Class I/JTBDX)      
Average Annual Return, Percent 2.71%   1.62% 2.16%
C000001879 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Municipal Opportunities Fund (Class C/TBMBX)      
Average Annual Return, Percent 0.80%   0.73% 1.26%
C000236446 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Short Duration Municipal Opportunities Fund (Class A/JHSFX)      
Average Annual Return, Percent 2.44% 3.43%    
C000236447 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Short Duration Municipal Opportunities Fund (Class C/JHSHX)      
Average Annual Return, Percent 3.12% 3.45%    
C000236448 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Short Duration Municipal Opportunities Fund (Class I/JHSJX)      
Average Annual Return, Percent 5.05% 4.41%    
C000236445 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Short Duration Municipal Opportunities Fund (Class R6/JHSKX)      
Average Annual Return, Percent 5.11% 4.44%    
Without Sales Load [Member] | C000001874 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name High Yield Municipal Bond Fund (Class A/JHTFX)—excluding sales charge      
Average Annual Return, Percent 2.94%   2.46% 2.51%
Without Sales Load [Member] | C000001876 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name High Yield Municipal Bond Fund (Class C/JCTFX)—excluding sales charge      
Average Annual Return, Percent 2.17%   1.69% 1.74%
Without Sales Load [Member] | C000001877 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Municipal Opportunities Fund (Class A/TAMBX)—excluding sales charge      
Average Annual Return, Percent 2.55%   1.49% 2.02%
Without Sales Load [Member] | C000001879 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Municipal Opportunities Fund (Class C/TBMBX)—excluding sales charge      
Average Annual Return, Percent 1.79%   0.73% 1.26%
Without Sales Load [Member] | C000236446 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Short Duration Municipal Opportunities Fund (Class A/JHSFX)—excluding sales charge      
Average Annual Return, Percent 4.79% 4.23%    
Without Sales Load [Member] | C000236447 [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Short Duration Municipal Opportunities Fund (Class C/JHSHX)—excluding sales charge      
Average Annual Return, Percent 4.12% 3.45%    
Bloomberg Municipal Bond Index [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Bloomberg Municipal Bond Index      
Average Annual Return, Percent 2.03% 1.80% 0.55% 2.13%
Bloomberg Municipal 1 5 Year Index [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Bloomberg Municipal 1-5 Year Index      
Average Annual Return, Percent 4.09% 2.21%    
Bloomberg High Yield Municipal Bond Index [Member]        
Average Annual Return [Line Items]        
Line Graph and Table Measure Name Bloomberg High Yield Municipal Bond Index      
Average Annual Return, Percent 3.64%   3.83% 4.00%