Modelling Arrays

Is it possible to model simple arrays? Example:

{
    "roles":
    [
        "Role1",
        "Role2",
        "Role3"
    ]
}

In the simple model editor, it seems to be only possible to model nested objects, e.g.

{
    "roles":
    [
        {
            "id": "Role1"
        },
        {
            "id": "Role2"
        },
        {
            "id": "Role3"
        }
    ]
}

Hi @andreas-still-light,

I’m a bit confused by this question. As a modeler, I use the SME and I am not particularly concerned how the json is structured in the end. We recommend that modelers only edit their models in the SME and so the structure always matches the one required by A12.

If you’re trying to manually change the json, then you run into the issue that the final json must match a particular structure. This structure depends on the model type and version.

Does this help you at all?