Copy / Move Fields (Free Online Tool)
Copy, move, or swap values between known JSON paths without broad restructuring
Paste your JSON → Get results instantly (no signup)
→ Copy or move values to the right paths in this JSON and copy field.
1{2 "name": "Alice",3 "email": "alice@example.com",4 "displayName": "Alice"5}Love the result?
Use this exact pipeline in your app, backend, or LLM workflow.
No setup needed. Works with curl, Node, Python.
Uses example data. For edited input, copy from the playground.
Works with:
- API responses
- Nested JSON
- Arrays & objects
Example: input → output
{ "name": "Alice", "email": "alice@example.com"}{ "name": "Alice", "email": "alice@example.com", "displayName": "Alice"}Related tools
- Rename KeysRename known keys or convert key casing without changing the underlying values
- Find & ReplaceFind and replace matching keys or values across JSON using broad search patterns
- FilterFilter rows, items, keys, or values by explicit conditions and keep only the matches you want
- Flatten / NestConvert nested objects to flat key paths or rebuild them using delimiter and casing rules
- Pick FieldsKeep only a known allowlist of fields and remove everything else
Advanced usage (optional)
Copy / Move Fields
v1.0.0Description
Copy / Move Fields
Copy, move, or swap fields within JSON objects. Reorganize your data structure by duplicating fields to new locations, relocating fields (removing the source), or exchanging two fields' positions.
Modes
Copy
Duplicate a field's value to a new location. The source field remains unchanged.
Move
Relocate a field to a new location. The source field is deleted after the value is placed at the destination. Supports moving to nested paths — intermediate objects are created automatically.
Swap
Exchange the values of two fields. Both fields must exist.
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
| Target Paths | path-picker | [] | Scope to specific objects (empty = apply to root / all items) |
| Mode | enum | copy | copy, move, or swap |
| Source Field | string | "" | Dot-notation path to the source field (e.g., name or address.city) |
| Destination Field | string | "" | Dot-notation path to the destination (also the second field in swap mode) |
Use Cases
Schema Migration
- Rename fields: Move
nametodisplayNameto match a new API schema - Nest flat fields: Move
citytoaddress.cityto create nested structure - Flatten nested fields: Move
address.citytocityfor CSV export
Data Duplication
- Backup values: Copy
emailtooriginalEmailbefore transformation - Default fields: Copy
nametodisplayNameas a fallback
Field Reorganization
- Swap columns: Exchange
firstNameandlastNamepositions - Reorder for display: Move important fields to expected positions
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| Target Paths | path-picker | [] | Scope to specific objects (empty = apply to root / all items) |
| Mode | enum | copy | copy: duplicate field. move: relocate (delete source). swap: exchange two fields. copy move swap |
| Source Field | string | | Dot-notation path to the source field (e.g., 'name' or 'address.city') |
| Destination Field | string | | Dot-notation path to the destination (also the second field in swap mode) |
Examples
Copy or move values to the right paths in this JSON and copy field.1{2 "name": "Alice",3 "email": "alice@example.com",4 "displayName": "Alice"5}API Usage
curl -X POST https://your-domain.com/api/v1/utilities/structure.copy-move \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inputs":{"primary":{"name":"Alice","email":"alice@example.com"}},"config":{"mode":"copy","sourcePath":"name","destinationPath":"displayName","targetPaths":[]}}'1{2 "name": "Alice",3 "email": "alice@example.com",4 "displayName": "Alice"5}