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)

⚡ Instant resultsNo signupRuns in your browser
Try examples:

Copy or move values to the right paths in this JSON and copy field.

{
"name": "Alice",
"email": "alice@example.com"
}
Output
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.

Read integration guide

Works with:

  • API responses
  • Nested JSON
  • Arrays & objects

Example: input → output

Input / Output
Input
{
"name": "Alice",
"email": "alice@example.com"
}
Output
{
"name": "Alice",
"email": "alice@example.com",
"displayName": "Alice"
}

Related tools

Advanced usage (optional)

Copy / Move Fields

v1.0.0
Structure
objectarraydestructive

Description

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

FieldTypeDefaultDescription
Target Pathspath-picker[]Scope to specific objects (empty = apply to root / all items)
Modeenumcopycopy, move, or swap
Source Fieldstring""Dot-notation path to the source field (e.g., name or address.city)
Destination Fieldstring""Dot-notation path to the destination (also the second field in swap mode)

Use Cases

Schema Migration

  • Rename fields: Move name to displayName to match a new API schema
  • Nest flat fields: Move city to address.city to create nested structure
  • Flatten nested fields: Move address.city to city for CSV export

Data Duplication

  • Backup values: Copy email to originalEmail before transformation
  • Default fields: Copy name to displayName as a fallback

Field Reorganization

  • Swap columns: Exchange firstName and lastName positions
  • Reorder for display: Move important fields to expected positions

Configuration

NameTypeDefaultDescription
Target Pathspath-picker[]Scope to specific objects (empty = apply to root / all items)
Modeenumcopycopy: duplicate field. move: relocate (delete source). swap: exchange two fields. copy move swap
Source FieldstringDot-notation path to the source field (e.g., 'name' or 'address.city')
Destination FieldstringDot-notation path to the destination (also the second field in swap mode)

Examples

AI Prompt
Copy or move values to the right paths in this JSON and copy field.
{
"name": "Alice",
"email": "alice@example.com"
}
Output
1{
2 "name": "Alice",
3 "email": "alice@example.com",
4 "displayName": "Alice"
5}
Config
Target Paths
all
Mode
copy
Source Field
name
Destination Field
displayName

API Usage

POST /api/v1/utilities/structure.copy-move
Example:
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":[]}}'
Response
1{
2 "name": "Alice",
3 "email": "alice@example.com",
4 "displayName": "Alice"
5}