For now patterns is defined by JSON object

{"pattern": "replace_with", ...}