JSON

How to rename JSON keys without changing values

2026-05-30
Task

The source JSON uses keys product_id, product_name, stock_count, while the receiving system expects id, name, stock.

Short answer

On the future JSON setup screen, open the node settings and change the Node name field. The value stays the same; only the key name changes in the resulting JSON.

What matters for the result

  • Renaming changes only the output key name; the value and source binding stay the same.
  • If the value must move to another JSON location, adjust the output structure instead of only renaming the key.
  • After running the transformation, verify that the output JSON does not contain both old and new keys with the same value.

Before / after

Before

JSON
{
    "product_id": "P-001",
    "product_name": "Nordic desk",
    "stock_count": 8
}

After

JSON
{
    "id": "P-001",
    "name": "Nordic desk",
    "stock": 8
}

How to do it in Eofferix

  1. Create an interpreter profile, upload the JSON, and choose JSON as the result format.
  2. After saving the profile, open the future JSON setup screen and click the source key product_id.
    Eofferix JSON editor screenshot with the product_id key highlighted
    The red frame marks the product_id key. Click this key to open the node settings.
  3. In the settings window, enter id in the Node name field.
    Screenshot of the Node name field in Eofferix JSON node settings
    The Node name field contains id. The key name changes, while the value P-001 stays unchanged.
  4. Repeat the same action for product_namename and stock_countstock.
  5. Save the template. On the final step, run the transformation.

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up