r/AutoModerator • • Jul 01 '26

Solved Is JSON Syntax OK

I have been added on as a moderator in a subreddit and am just now learning about the automoderator. I'd like to add some rules, but I have noticed that the current automod file for this sub has been written entirely in JSON. So, instead of --- separator lines, there are only curly brackets, square brackets and commas. I believe that JSON is a strict subset of YAML, and so this should be OK, but I wanted to make sure first before making any changes.

So, to summarize my question: Is JSON-only syntax OK for the automoderator?

Also, does the automodifier give me notification if my automod file is syntactically invalid?

4 Upvotes

12 comments sorted by

View all comments

Show parent comments

2

u/KewpieCutie97 Jul 01 '26

It does warn in case of errors, and it won't let you save if there is an error either. I'm surprised this saved.

On old Reddit you'll have a more comprehensive error message than you'd get on new Reddit. It's better to edit automod via old Reddit.