JPMorgan CEO Jamie Dimon said the US economy has "demonstrated notable resiliency" despite inflation and higher oil prices.