JSON Field Value Mapper
JSON Field Value Mapper copies the value at one JSON path into a target path in the same record. The redesigned workbench first scans and lists every path in the JSON; click chips to pair source and target fields and the result updates live on the right. Besides row-by-row custom mappings, it ships a Preset template · AIShort for one-click multilingual field copying, two target write modes (Always overwrite / Only fill empty targets) and a per-mapping comparison.

- Paste or drop JSON (an empty input shows example cards: fill missing locale prompts, migrate legacy field, clone nested object)
- Click a source chip under Discovered paths, then a target chip
- Add more rules with Add mapping, or type source / target paths directly
- Expand Advanced settings as needed: write mode, skip empty source, JSON indentation
- Review the live result, switch to Mappings for a row-by-row check, then copy or export :::
Workbench at a glance
- Left: input area → Discovered paths → Mapping rules → Advanced settings
- Right: result area with a JSON / Mappings switch plus Result ➔ Source, Copy, Copy node and Export
- Top: Format JSON, Upload, Clear all; the whole input card accepts dropped files
- Live results: there is no Start button — editing the JSON, a rule or the write mode recalculates instantly
How to use
1. Input JSON data
- Paste JSON, or drop a .json / .txt file anywhere on the input card; Upload works too
- Format JSON re-indents the input with two spaces (disabled while the JSON is invalid); Clear all wipes the source, the mapping rules and the path filter
- The top level must be an object or an array. Invalid JSON shows "Invalid JSON format" under the input and in the result pane, with an "Invalid JSON" pill next to the title; a top level that is null or a primitive shows "Top-level JSON is null — it is valid JSON, but there is no object or array to work on."
- With an empty input, the right pane offers three example cards — Fill missing locale prompts (en → ja, ko), Migrate legacy field ($[*].a → b) and Clone nested object (Object clone) — clicking one loads the JSON, the mappings and the write settings at once
2. Pick the source field
- Once the JSON is valid, Discovered paths lists every path (strings, numbers, booleans, null, objects and arrays all appear), with an "N paths" badge next to the title; each chip shows its path, value type and occurrence count, and hovering shows "path (type) — sample"
- Array paths use [*]; keys that are not valid identifiers use ['key'] notation
- The hint next to the title tells you which slot the next click fills: "Click to fill source" or "Click to fill target". Chips already used as a source get a solid highlight; chips used as a target get a dashed highlight
- With more than 8 paths a filter box appears (filters by path, sample or type); the first 12 are shown by default, with Show all N paths / Show fewer
- Huge documents are scanned up to 20,000 nodes and at most 200 paths are listed; past that the tool says "Showing first 200 paths"
- If the JSON has no nested paths at all, the result pane says "No nested paths found to map in this JSON"
3. Pick the target field
- After the source field is filled the focus jumps to the target field of the same row; click another chip to complete the rule and the result appears live
- You can also type a path directly into the Source field / Target field inputs; suggestions come from the discovered paths
- Target fields must already exist: an unmatched target path marks the rule "Invalid target field (target field must already exist)" and that rule is excluded from the output
- Each rule card has Duplicate rule and Delete mapping actions; the arrow button between the two slots swaps source and target
- Add mapping appends a rule; Clear rules resets to a single empty rule; a rule can only be deleted while more than one exists
4. Choose the preset template or custom mapping
- The rule area switches between Custom mapping and Preset template · AIShort, and the two states are kept independently: switching to the preset and back does not lose your custom rules
- The preset bundles 11 mappings that copy en.prompt into the prompt fields of ar, bn, de, es, fr, hi, it, ja, ko, pt and ru; those target fields must already exist in the JSON
- In preset mode the 11 target paths are listed as chips: matched ones are highlighted with their paired count, missing ones fade out
- Copy to custom clones the 11 preset rules into editable custom rules (replacing the current custom mapping)
- Discovered path chips are not clickable in preset mode; switch to custom editing before fine-tuning individual rules
5. Adjust the write mode and review results
- Expand Advanced settings: Target write mode offers Always overwrite (default) or Only fill empty targets; Skip empty source values controls whether empty sources are skipped; JSON indentation offers 2 spaces (default), 4 spaces or Compact
- After changing anything a Reset defaults button appears at the bottom; when collapsed, the header summarizes the current setup (e.g. "Overwrite · 2 spaces · Skip empty source")
- The result header shows "N updated" or "0 changes", plus "N skipped" when some rows were skipped
- Results can be copied, copied as a node, or exported as json_value_transformer.json; Result ➔ Source is enabled once something was updated and overwrites the input with the result for further processing
Discovered paths and click-to-fill
- Scan scope: the whole document is walked from the root; every object key and every array element is visited, and arrays use the [*] wildcard, so object and array nodes appear in the list as well (handy for cloning a whole object)
- Chip anatomy: path, value type (string / number / boolean / null / object / array / mixed) and occurrence count — how many nodes share that path
- Click priority: if an input currently has focus (you just clicked it), the chip fills that slot; otherwise it fills the first rule missing a source field, then the first rule missing a target field; if nothing is missing it adds a rule and focuses its target field
- Automatic hand-off: after a source field is filled the focus moves to the target field of the same row, so the usual two clicks (source, then target) complete one rule
- Autocomplete: typing a path offers suggestions from the discovered list
- Keys outside the list: keys containing brackets, quotes or backslashes are skipped during discovery; enter them manually with the ['key'] bracket notation
- Scan limits: first 20,000 nodes and first 200 paths; past that the tool asks you to type the full JSONPath into the rule
Mapping rules, pairing and write mode
Execution and pairing
- Rules run from top to bottom, and later rules can read values written by earlier ones, so a → b → c chained mappings work
- Pairing is record-level: the two paths keep their common prefix (including [] wildcard segments) and only the differing trailing field names are stripped. For example en.prompt → ja.prompt pairs within the same object, while items[].en → items[*].ja matches item by item and never crosses records
- Object and array values are deep-cloned before writing, so multiple rules do not affect each other
- Two paths pointing into separate arrays cannot be paired and the rule is marked "Cross-array mismatch"; if some records lack the target field the rule shows "N paired (partial)" together with "Some input and output node counts don't match; only the matching pairs were processed"
Preset template details
The source path is en.prompt for every row. Preset mode runs the built-in mappings and ignores your custom rules; use Copy to custom to edit them one by one.
Write mode
Rule status
Each rule card shows a live status pill: Incomplete, N paired, N paired (partial), Invalid source field, Invalid target field (target field must already exist), Invalid path or key, or Cross-array mismatch. Failed rules are skipped while the other valid rules still produce output, with the notice "N other rules matched no nodes and were skipped" above the result; when every rule fails, only a hint is shown and no output is produced.
Result views: JSON and mapping comparison
JSON view (default)
- The complete output is shown read-only, with character and line counts at the bottom
- When pairing is partial, a warning reads "Some input and output node counts don't match; only the matching pairs were processed"; failed rules add "N other rules matched no nodes and were skipped"
- Copy copies the full result; Copy node strips the outer braces / brackets; Export saves json_value_transformer.json
Mappings view
- The toolbar switches between "Updated (N)" and "All paired (N)"
- Columns are: index, source path, target path, previous target value and mapped value; unchanged rows are tagged "Unchanged" and policy-skipped rows are tagged "Skipped"
- With more than 5 paired items a search box appears (filters by path, previous or new value)
- If no target value changed under the current rules, a hint suggests switching to "All paired" to inspect every item
- The table previews at most 300 rows; use the JSON view, Copy or Export for the full output
Path syntax
Pairing relies on the common prefix of the two paths to identify the same record; only nodes that can be paired record by record are written.
Notes
:::warning Target fields must already exist This tool never creates fields. An unmatched target path reports "Invalid target field (target field must already exist)"; to add fields, use JSON Node Bulk Insert first.
- Keys are case-sensitive: paths follow JSONPath semantics, so a different case will not match
- Copy to custom replaces your custom rules: it writes the 11 preset rules into the custom mapping, so check whether you still need existing custom rows first
- 0 and false are not empty: Only fill empty targets treats only an empty string or null as empty; the numbers 0 and booleans false count as existing values
- Number precision: JSON numbers are parsed as floating point, so integers beyond the safe range (18-digit snowflake IDs, for example) may already lose precision; the tool warns "Integers beyond the safe range detected; the output may lose precision". Store such IDs as strings when exactness matters
- Relaxed parsing: input is parsed JSON5-style (single quotes, unquoted keys and trailing commas are fine) and output is always standard JSON
- Performance: for large files use Upload or drag-and-drop instead of pasting huge text into the box
- Everything runs locally in your browser — input never leaves your machine
Pairing with other JSON tools
- Extract field values before counting or joining: JSON Field Value Extractor
- Find/replace, add prefixes/suffixes or overwrite whole values in the target fields: JSON Node Bulk Edit
- Hand the mapped multilingual fields to a translator: JSON Translate
- Backfill values from another dataset by ID: JSON Match Update

