Please help, in control

No matter what I do, no matter how I change the code, I keep getting this error. And I don't think it's the code, I think it's something else. Because I've tried so many code variations to reduce the frequency of spawning mobs. I even use a neural network that writes codes for this mod and more. Read the wiki, made sure all the keywords are correct, then, what's the matter?
version
1.16.5

error:
Rule 0 in potentialspawn is invalid, skipping!
code:
[

{

"mob": "kimetsunoyaiba:demon_2",

"weight": 90,

"groupcountmin": 1,

"groupcountmax": 3,

"dimension": 0

}

]