So first, let's learn how to create a file for a restriction.
All the restriction files should be placed in the "restrictions" (Folder example #1) folder.
Folder example #1
Once you're in the "restrictions" folder you have a bunch of different ways of creating a JSON file, the easiest method would be to just copy paste the example file already found on this wiki page and renaming it.
Now I'm going to split this into 2 different parts because in the restriction file we have "Restriction Data" which is the main required info about a restriction and "Settings" which are, well the settings of that said restriction.