For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/guide/json/json-node-edit.md.
  • English
  • JSON Node Bulk Edit

    JSON Node Bulk Edit edits the string nodes inside JSON with JSONPath, live. The redesigned workbench first scans and lists every string field - click a chip to add its path and the right pane instantly shows the rewritten JSON plus a node-by-node before/after diff. Prefixes, suffixes, find and replace, regex, full overwrite, and language-code replacement all happen on one screen, with no Start button.

    JSON Node Bulk Edit Interface

    30-second quickstart
    1. Paste or drop JSON (an empty input shows example cards: CDN prefix/suffix, HTTPS upgrade, language variables)
    2. Click a chip under Discovered string fields, or type comma-separated JSONPaths
    3. Add find and replace or prefixes under Edit operation, or switch to Overwrite
    4. Watch the live result on the right and review the Changes view
    5. Copy, export, or click Result to Source to continue editing :::

    Workbench at a glance

    • Left: input area → JSON paths (with Discovered string fields) → Edit operation → Advanced settings
    • Right: result area with a JSON / Changes switch plus Result to Source, Copy, Copy node, and Export
    • Top: Format JSON, Upload, Clear all; the whole left card accepts dropped files
    • Live results: there is no Start button anymore - editing the input, the paths, or any operation recalculates instantly
    • Layout: two side-by-side panes on wide screens, stacked on narrow ones

    How to use

    1. Input JSON data

    • Paste JSON into the left input area, or drop a .json / .txt file onto the left card; Upload works too
    • Format JSON re-indents the input with two spaces (disabled while the JSON is invalid); Clear all wipes the input, paths, and operation fields (advanced switches stay as they are)
    • Invalid JSON shows "Invalid JSON format" under the input and in the result pane, and the input header shows an "Invalid JSON" pill
    • Input is pre-processed loosely, so JSON5-style comments, single quotes, and trailing commas are accepted
    • A top-level null shows "Top-level JSON is null - it is valid JSON, but there is no object or array to work on"
    • Long integers beyond the safe range trigger a precision warning (see Strings only and number precision)
    • The badge in the input header counts the strings found, e.g. "6 strings"
    • With an empty input the right pane offers three example cards - Add CDN prefix & extension (Prefix + Suffix), Upgrade links to HTTPS (Regex), and Language variable replace (en → English) - clicking one loads the JSON, paths, and operations at once

    2. Pick the field paths to edit

    From Discovered string fields

    • Once the JSON is valid, this row lists every string field path; the number on each chip is how many string values that path matches
    • Hover a chip to see "path - sample value"; click to add / remove the path in JSON paths, with selected chips highlighted
    • With more than 8 fields a filter box appears (filters by path or sample value); the first 12 are shown by default with Show all N fields / Show fewer fields
    • Huge documents are scanned up to 20,000 nodes and at most 200 paths are listed; past that the tool asks you to type the full JSONPath
    • With 20 fields or fewer and not everything selected, Select all appears in the header; Clear wipes all paths
    • If the JSON has no editable string nodes, a notice tells you so

    Type a JSONPath

    • Enter paths directly in the JSON paths box, comma-separated for several; discovered paths are suggested as you type and clicking one appends it
    • Commas inside brackets belong to the same path (such as tags[0,2]) and are not split
    • Supported forms are listed in Path syntax below

    3. Configure the edit operation

    Edit operation has two modes: Modify (default) and Overwrite.

    Modify

    • Find & replace: Find text → Replace text; .* toggles the regular expression (off by default) and Aa toggles case sensitivity (on by default)
    • With regex off the search is literal; with regex on Find text is compiled and Replace text can use $1, $2 capture groups
    • Language code → name: when on, the Replace text input is swapped for an auto-replace notice and the placeholder in Find text is replaced with the English name of each node's language code (e.g. zh → Chinese)
    • With the toggle on and Find text empty, a hint asks for a placeholder; matched languages appear as "Detected path languages: zh → Chinese"
    • Prefix & suffix: Add prefix and Add suffix are applied after find and replace; leave them empty when not needed
    • Order in Modify mode: Find text → Replace text (or language replacement) → Add prefix → Add suffix → Trim whitespace → Capitalize first letter

    Overwrite

    • Overwrite value replaces every matched string node with the fixed text; prefix, suffix, and find and replace do not participate
    • While the input is empty and Allow empty overwrite is off, matched values stay unchanged
    • Overwritten values still pass through Trim whitespace and Capitalize first letter when those are on

    Advanced settings

    The collapsed header shows the current summary (e.g. "2 spaces"). Expanding it reveals:

    • Capitalize first letter: upper-cases the first character when it is a lowercase letter
    • Trim whitespace: trims each edited value
    • JSON indentation: 2 spaces / 4 spaces / Compact
    • After changing any advanced option a Reset defaults button appears at the bottom
    • Regex, case sensitivity, capitalize, trim, indentation, and Allow empty overwrite are remembered locally and survive a reload; paths, affixes, and find / replace / overwrite text live only in the current page and reset on reload or Clear all

    4. Check the changes in the result pane

    • The right header shows "N changed" live, or "0 changes" when nothing was altered
    • The JSON view holds the full rewritten JSON; Changes lists path, before, and after per node
    • Notices above the results explain invalid paths and non-string nodes; see Result area below

    5. Copy, export, or apply back to source

    • Copy copies the current JSON result; Copy node strips the outer {} / [] first
    • Export saves json_node_edit.json
    • Result to Source writes the result back into the input area and clears the affixes, find and replace, and overwrite values so you can keep editing
    • The result footer shows character and line counts

    Result area: JSON and change diff

    Results recalculate as you type. The badges in the right header:

    • N changed: how many nodes this pass actually modified
    • 0 changes: nodes matched, but the current rules altered none of them

    JSON view: the complete rewritten JSON, read-only, ready to copy or export.

    Changes: one row per match with #, path, before, and after columns; unchanged rows are dimmed and tagged Unchanged.

    • The toolbar switches between Changed (N) and All matched (N); it defaults to Changed
    • With more than 5 matches a search box appears, filtering by path, before, or after
    • The table previews at most 300 rows; past that, the notice points you to the JSON view, copy, or export

    Notices you may see above or in the result area:

    • Invalid path or key: lists the paths that matched nothing; the other paths still produce output, and nothing is output when every path is invalid
    • Matched nodes are not string values; nothing was modified: object / array or non-string matches are skipped
    • N non-string nodes were left untouched: only part of this pass was non-string
    • Invalid regular expression: ...: fix the pattern and the result recovers automatically
    • No matched values changed under current rules: shown when Changed is empty; switch to All matched to inspect the nodes

    Path syntax

    FormMeaningExample
    Bare field nameRecursive match at any depth (equivalent to $..fieldName)title, user.name
    Path starting with $Absolute path from the root$.products[*].name
    Array wildcard / indexEvery array element, or one at a given position$.items[*].id, $.items[0].id
    Bracket notationFor keys containing special characters$['data']['title']
    Comma-separated listEdit several locations at once, merged in path ordertitle,description

    Forms can be mixed in the same box; when several paths point at the same node it is edited only once.

    Strings only and number precision

    :::warning Strings only Numbers, booleans, objects, and arrays are never edited and keep their types. Non-string matches are skipped with a notice, and when every match is non-string nothing is modified.

    Number precision

    JSON numbers are parsed as floating point in the browser, so integer literals beyond the safe range (18-digit snowflake IDs, for example) may already lose precision while parsing, and the edited output inherits that loss. The tool never touches the source input - store such IDs as strings when exactness matters.

    Pairing with other JSON tools

    Every tool runs locally in your browser - input never leaves your machine.