Im programming an app that gets names and id's from a database and I want to make it populate the table view with names and when you click the name it goes to a posts the id of the item clicked. My question is what data structure should i use to store the id and name. Would it be smart to use a Dictionary with a the id as the key and the name as the value?
Database response looks like this
[{"id":1,"name":"Name of Business 1"},{"id":2,"name":"Name of Business 2"}]