A replace that reports what it touched.
The module walks every string in the parsed document. Values are matched by default, keys as well when you switch them on, and the result is a report: how many matches, in how many fields, and each one as a path with the value before and after.
| Control | Effect |
|---|---|
| Literal (default) | the search text is matched exactly and the replacement is inserted verbatim, so $& or $1 stay characters |
| Regex | the search becomes a pattern and the replacement may use group references |
| Match case | off means every casing matches |
| Keys | the same substitution runs on object names, which makes this a rename |
| Find | produces the report without touching the document |
Renaming without losing a field
Two keys collapsing onto one name is the classic way a rename destroys data, so collisions are counted and printed (N renamed key(s) collided and overwrote an existing key) in both directions: a renamed key landing on an untouched one, and an untouched key landing on a renamed one.
NOTE Only strings are reachable. A number you want rewritten needs a conversion rather than a replacement, and because the walk covers the whole document a short pattern such as id will hit every key containing those two letters.
What you get on this page
- ▸Search string values and optionally object keys
- ▸Case-sensitive and regular expression modes
- ▸Live match report with JSON paths
- ▸Replace all matches and send the result back to the editor
Because bracekit is a static application, this page loads quickly, caches well and never sends your data to a parsing server. Your formatting preferences, recent documents and snippets stay in local storage.