title: Is there a way to deliver an array via a REST-Webservice in Denodo?
body: <p>I´m importing a JSON-Datasource in Denodo which contains 2 arrays. In order to work with the data i flatten those arrays. However when delivering the data I want to get back to the initial array structure to get something like</p>
  
  <pre><code>{
    "name": "name_of_my_view",
    "elements": [
      {
        "result": [
          {
            "id": 40033495,
            "first_name": Max,
            "last_name": Mustermann
          },
          {
            "id": 39960791,
            "first_name": "Markus",
            "last_name": "Markwart"
          }
        ],
        "took_ms": 4,
        "result_count": 323,
        "errors": [
          {}
        ]
      }
    ],
  "links": [
      {
        "rel": "self",
        "href": "https://address"
      }
    ]
  }
  </code></pre>
  
  <p>I have flattend both arrays (result, errors) in order to edit the respective fealds within them. However i only see the option of using UNION to combine them. If i do so I end up having all fealds in one hierarchy like (Ignore the sorting in this example) Oh and note that "code" and "description" are within the "error" array and are not shown in the above example because there are no errors in it:</p>
  
  <pre><code>{
    "name": "name_of_my_view",
    "elements": [
      {
        "took_ms": 4,
        "result_count": 323,
        "code": null,
        "description": null,
        "id": null,
        "first_name": null,
        "last_name": null
      },
      {
        "took_ms": 4,
        "result_count": 323,
        "code": null,
        "description": null,
        "id": 40033495,
        "first_name": null,
        "last_name": null
      }
      ],
  "links": [
      {
        "rel": "self",
        "href": "https://address"
      }
    ]
  }
  </code></pre>