It's not that dwarfs do well in small pots, but rather JMs can easily be root pruned to stay in a smaller pot. Similar but what I do is not as drastic as bonsai. Bonsai is high maintenance in that you have to trim branches, train branches, root pruning to also slows growth and allows for new root growth. Here is a video that explains it better than I can.
https://www.finegardening.com/...