{
    "data": {
      "tree": [
        {
          "value": "record_out",
          "tree": [
            {
                "value": "palturai_id",
                "key": "id"
            },
            {
                "value": "name",
                "key": "name"
            },
            {
              "value": "status",
              "key": "status"
            },
            {
              "value": "capital",
              "tree": [
                {
                  "value": "amount",
                  "key": "capital"
                },
                {
                  "value": "currency",
                  "key": "capitalCurrency"
                }
              ]
            },
            {
              "value": "registration",
              "tree": [
                {
                  "value": "country",
                  "key": "officialRegistrationCountry",
                  "schema": "mappings/iso3166_a3_a2:key",
                  "output": "value"  
                },
                {
                  "value": "id",
                  "key": "officialRegistrationNumber"
                },
                {
                  "value": "city",
                  "key": "registryCity"
                },
                {
                  "value": "postal",
                  "key": "registryZip"
                }
              ]
            },
            {
              "value": "address",
              "tree": [
                {
                  "value": "country",
                  "key": "currentAddress.countryCode",
                  "schema": "mappings/iso3166_a3_a2:key",
                  "output": "value"  
                },
                {
                  "value": "city",
                  "key": "currentAddress.city"
                },
                {
                  "value": "postal",
                  "key": "currentAddress.zipCode"
                },
                {
                  "value": "line_1",
                  "key": "currentAddress.streetHouseNumber"
                }
              ]
            },
            {
              "value": "contact",
              "tree": [
                {
                  "value": "websites",
                  "key": "webAddresses"
                },
                {
                  "value": "telephones",
                  "key": "phoneNumbers"
                }
              ]
            },
            {
              "value": "risk",
              "tree": [
                {
                  "value": "risk",
                  "key": "riskInfo"
                },
                {
                  "value": "date",
                  "key": "riskInfoDate"
                },
                {
                  "value": "history",
                  "key": "riskInfoHistory"
                },
                {
                  "value": "distance",
                  "key": "troubleDistanceValue"
                }
              ]
            },            
            {
              "value": "legal_form",
              "key": "legalForm"
            },
            {
              "value": "tax_id",
              "key": "taxId"
            },
            {
              "value": "founding_date",
              "key": "foundingDate"
            },
            {
              "value": "purpose",
              "key": "purpose"
            },
            {
              "value": "insolvent",
              "key": "insolvent"
            },
            {
              "value": "industries",
              "key": "industryCodes"
            },
            {
              "value": "turnovers",
              "key": "turnovers"
            },
            {
              "value": "employees",
              "key": "employees"
            }
          ]
        }
      ]
    }
}
