Text and data tools

Bulk JSON Mapper

Restructure nested JSON, map keys, and process arrays or multiple files with one reusable mapping.

Conversion input and options

Choose records

Use $ for the whole input, or select a nested collection. data.users · groups[*].users[*]

Use dots for nested output keys. Fallbacks are JSON values used only when a source path is missing. "unknown", 0, false, null, []

Source paths support array indices, [*] wildcards, and ["literal.key"]. Use $$ to read the original document.

How it works

Use one mapping to turn API responses, exported records, or batches of JSON files into a consistent structure. Select a nested collection, connect source paths to new keys, and download one combined array or a separate result for each file. Processing runs in a browser worker without uploads.

The sample selects data.users, copies profile.name to customer.name, collects orders[*].sku into orderSkus, and reads the batch label from the original document. Advanced mode also builds line-item objects and calculates totals without losing each item's quantity and price.

Input and output example

Input text

{
  "batch": "north",
  "data": {
    "users": [
      {
        "id": "u1",
        "profile": {
          "name": "Ada",
          "email": "ada@example.com"
        },
        "orders": [
          {
            "sku": "A1",
            "qty": 2,
            "price": 12
          },
          {
            "sku": "B2",
            "qty": 1,
            "price": 8
          }
        ]
      },
      {
        "id": "u2",
        "profile": {
          "name": "Lin",
          "email": "lin@example.com"
        },
        "orders": [
          {
            "sku": "C3",
            "qty": 3,
            "price": 5
          }
        ]
      }
    ]
  }
}

Converted text

[
  {
    "id": "u1",
    "customer": {
      "name": "Ada",
      "email": "ada@example.com"
    },
    "orderSkus": [
      "A1",
      "B2"
    ],
    "batch": "north"
  },
  {
    "id": "u2",
    "customer": {
      "name": "Lin",
      "email": "lin@example.com"
    },
    "orderSkus": [
      "C3"
    ],
    "batch": "north"
  }
]
Download example result

Tips

Start with Find source paths, then map a small sample and inspect the result. Decide how missing values should behave before processing a batch. Export your mapping to reuse it. Use JSONata advanced mode for calculated fields, grouping, or reshaping nested arrays.

Limits

Up to 20 files, 50 MB per file, 100 MB total input and 100 MB total output, 100 mapping rules, 100,000 records, 2,000,000 JSON values per document (every object, array, and field counts), and 128 JSON levels. Paste input is limited to 5,242,880 characters. Field mappings build nested objects; advanced mode can build arrays. JSON numbers use browser precision. Invalid input stops the batch; partial results are not downloaded.

Common questions

Why do missing names and empty order lists look different?

With Set null, a missing profile.name becomes null. If orders exists but is empty, orders[*].sku produces []. Choose Stop with an error if a missing name should halt the batch.

Privacy notice · Report a problem · Contact