Skip to content

Nested objects

camous edited this page Aug 1, 2018 · 7 revisions

ACMEMAPPER supports basic nested/composed objects with limit of 1 level either for source or destination object

DEFINITION CONFIGURATION

All nested scenarios are configured with fromsubproperty & tosubproperty property.

input : systemSource

{
    "flatproperty" : "hello flat value",
    "nestedproperty" : {
        "nestedvalue" : "hello nested value"
    }
}

Nested to flat property

configuration

{
    "systemSource" : {
        "property" : "nestedproperty"
    },
    "systemDestination" : {
        "property" : "flatdestinationproperty",
        "fromsubproperty" : "nestedvalue"
    }
}

ouput

{
    "flatdestinationproperty" : "hello nested value"
}

Flat to nested property

configuration

{
    "systemSource" : {
        "property" : "flatproperty"
    },
    "systemDestination" : {
        "property" : "nesteddestinationproperty",
        "tosubproperty" : "nestedsubproperty"
    }
}

ouput

{
    "nesteddestinationproperty" : {
        "nestedsubproperty" : "hello flat value"
    }
}

Nested to nested property

configuration

{
    "systemSource" : {
        "property" : "nestedproperty"
    },
    "systemDestination" : {
        "property" : "nesteddestinationproperty",
        "fromsubproperty" : "nestedvalue",
        "tosubproperty" : "nestedsubproperty"
    }
}

ouput

{
    "nesteddestinationproperty" : {
        "nestedsubproperty" : "hello nested value"
    }
}