Minecraft, how to make myself admin of my server?

So i use a MAC, and i just made a minecraft server following this tutorial:

so I've made my server (thank god lol) and i just don't know how to make myself admin. In the tutorial, in the 'My minecraft server' folder we made, he has a file called ' ops.txt ' which he went on, and put his minecraft username in to become admin. I don't have that file, i just have ops.json, so i went on that and put my minecraft username in it, so i think i'm admin. So am i admin now? Also how do I tell if i'm or not?

Ops.txt or ops.json should work the same way.

If your name is in the file on its own line. Your an admin.

You can also do this in the server console.
1. On the left hand side of your control panel click "Console".
2. In the text box above the console, type "op <username>", where <username> is the Minecraft username of the player you wish to OP. As an example, we would type "op MCProHosting", without the quotation marks.
3. Either click the "Send" button located to the right of the text box, or press the "Enter" key on your keyboard.

You will receive a response similar to "[Server] INFO CONSOLE: Opped MCProHosting"

You have now successfully "opped" that username.

Hope it helps.