I have the following json file I am trying to access time, percent, amount from above nested array Json file using Qml. I am not able to get these data. I want this data to fill in a table which has 3 columns. Please tell me how to do it.
sample.json:
{
"rates": [
{
"time": "3 Months",
"interest": [
{
"percent": "0.01",
"amount": "2500"
},
{
"percent": "0.02",
"amount": "5000"
},
{
"percent": "0.09",
"amount": "10000"
}
]
},
{
"time": "6 Months",
"interest": [
{
"percent": "0.10",
"amount": "2500"
},
{
"percent": "0.11",
"amount": "5000"
},
{
"percent": "0.12",
"amount": "10000"
}
]
},
{
"time": "1 Year",
"interest": [
{
"percent": "0.11",
"amount": "2500"
},
{
"percent": "0.12",
"amount": "5000"
},
{
"percent": "0.14",
"amount": "10000"
}
]
}
]
}