Which type I should use to save many objects with same key?
I should post data to server where one of parameter is suggestedTo and it contains userId.
This parameters should be more then one. So I’m confused which data type I should use to save them.
For example array or dictionary should looks like
{
@"suggestedTo" = 111,
@"suggestedTo" = 222,
@"suggestedTo" = 333,
etc.
}
This is typically handled with a dictionary of sets (or arrays if the data is ordered). So in this case, you’d have something like: