> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Combining Two Data Results and Removing Redundancies

> You can combine data arrays coming from different sources under a single array. This page includes an example of combining multiple arrays using shift operation.

### Input Value

```json theme={null}
{
  "statusCode": 200,
  "statusDescription": "OK",
  "numRows": 5521,
  "data": [
    {
      "xTur": "BASİT 1",
      "xLoc": "TERMAL 1"
    },
    {
      "xTur": "BASİT 2",
      "xLoc": "TERMAL 2"
    }
  ],
  "xServis": [
    {
      "xTur": "BASİT 3",
      "xLoc": "TERMAL 3"
    },
    {
      "xTur": "BASİT 4",
      "xLoc": "TERMAL 4"
    }
  ]
}
```

### JOLT Specification

```json theme={null}
[
  {
    "operation": "shift",
    "spec": {
      "data": {
        "*": {
          "@": "data.[&1]"
        }
      },
      "xServis": {
        "*": {
          "@": "data.[&1]"
        }
      }
    }
  }
]
```

### Output Value

```json theme={null}
{
  "data": [
    {
      "xTur": "BASİT 1",
      "xLoc": "TERMAL 1"
    },
    {
      "xTur": "BASİT 2",
      "xLoc": "TERMAL 2"
    },
    {
      "xTur": "BASİT 3",
      "xLoc": "TERMAL 3"
    },
    {
      "xTur": "BASİT 4",
      "xLoc": "TERMAL 4"
    }
  ]
}
```
