Hi there, I wanted to know how I can capture server traffic if I create a small little minecraft server to play with my friends or just in general, how do i capture minecraft Requests and stuff?

Like I've heard that you can capture HTTPS requests and stuff and I tried that, but It didn't capture like minecraft stuff (such as logging in to a server).
So that must mean it uses something else...? like Json or something ?

So my question is, how can I capture request that my minecraft client sends to a server ( or if i created a server myself and I want to capture request from clients joining to it.) [sorry if this is a very simple question]