I'm looking to build a reporting system, it will have canned reports, and user created reports, for each report I'll need the name, description, and the information that it will contain below is a structure I've jsonlint'ed to represent all the data a single report called "Review Progress" (inside the canned report structure) will need.
{
"Canned": [
{
"Name": "Review Progress",
"Description": "Quick Look at ...",
"Contents": {
"Collections": [],
"Filters": [],
"Facets": {
"Review Status": [
{
"Reviewed": {
"value": "300",
"enabled": "true"
}
},
{
"Not Reviewed": {
"value": "150",
"enabled": "false"
}
}
]
}
}
}
]
}
Am I barking up the wrong tree here by creating a series of dictionaries and arrays as accessing items inside of it for setting up the tableview will start to look something like this?
cell.textLabel.text = self.reports[indexPath.section][@"Reports"][indexPath.row][@"Name"];
Would anyone suggest a different approach like coredata/some sort of DB instead for ease? I ask as users will be able to create their own reports which will have to have the same data.