How to make XML elements from a JSON array of products

2026-05-05
Problem

There is a JSON with an array of products. You need to get XML, where each product will become a separate element.

Short answer

Use a JSON editor: select the desired node, set transformations and upload the result to the target structure.

Sample task

The data below is educational. They show the conversion form, not the users' actual files.

It was

{
  "products": [
    { "sku": "SKU-1", "name": "Product 1", "price": 1200 },
    { "sku": "SKU-2", "name": "Product 2", "price": 900 }
  ]
}

It became

<products>
  <product>
    <sku>SKU-1</sku>
    <name>Product 1</name>
    <price>1200</price>
  </product>
  <product>
    <sku>SKU-2</sku>
    <name>Product 2</name>
    <price>900</price>
  </product>
</products>

How to set up

  1. Upload your file and go to the JSON editor.
  2. In the editor, find the desired value or node and click on it to open the settings window.
  3. In the block "Transformations" add rules for selecting, renaming, or assembling values.
  4. If some records need to be excluded, use a block "Unloading conditions".
  5. Save the settings and download the result in the target format.

Process data faster with Eofferix

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

Sign up