Skip to main content

JSON Editor

For developers and power users who prefer code over clicks, Redd provides a full-featured JSON Editor. This allows you to write, paste, and edit your monitor logic directly using our structured schema.

The Schema Structure

A Redd monitor is a JSON object that represents a logic tree.

Logic Groups

Groups are defined by two properties:

  • "$Type": Either "And" or "Or".
  • "SubConditions": An array containing other groups or individual conditions.

Individual Conditions

Conditions are objects within the SubConditions array.

  • "$Type": The specific condition name (e.g., "TitleContainsAnyOf").
  • "Values": An array of strings.
  • "CaseSensitive": (Optional) Boolean.
  • "WholeWord": (Optional) Boolean.

Example JSON

Here is a monitor that tracks "python" or "golang" subreddits for the keyword "async", excluding "AutoModerator".

{
"$Type": "And",
"SubConditions": [
{
"$Type": "Or",
"SubConditions": [
{ "$Type": "SubredditIsAnyOf", "Values": ["python"] },
{ "$Type": "SubredditIsAnyOf", "Values": ["golang"] }
]
},
{
"$Type": "TitleContainsAnyOf",
"Values": ["async"],
"WholeWord": true
},
{
"$Type": "AuthorIsNoneOf",
"Values": ["AutoModerator"]
}
]
}

Why use the JSON Editor?

  • Bulk Editing: Easily add dozens of keywords or subreddits by pasting an array.
  • Portability: Copy a complex filter from one monitor and paste it into another.
  • Version Control: Keep a backup of your complex filter logic in your own repository.
  • Precision: Fine-tune every property without navigating the UI.
Valid JSON Required

The editor will show an error if your JSON is malformed. Ensure all brackets are closed and strings are properly quoted.