Upload JSON file

0
Hi All, I would like to upload a JSON file having multiple records and view the records row-wise. I am able to import a single file record file but its not working for multiple records. Do I have to make any changes to the JSON structure for importing multiple records? I am new to Mendix so any help or suggestion is welcomed. Thanks in advance. 
asked
1 answers
2

If your JSON definition looks like this:

{
    "label": "Name",
    "value": "Example"
}

it indicates a single object / row. In that case, you can change it to

[
    {
        "label": "First label",
        "value": "Example value"
    },
    {
        "label": "Second label",
        "value": "Example value 2"
    }
]

which will let the mapping return a list of these objects.

answered