I have list of dictionaries in c#. How to create array of items for specific key from dictionary? In objective-C there is valueForKeyPath: method.
Here is an example of the list with dictionaries:
[
{ "id": 1546, "description": “test_1” },
{ "id": 2228, "description": “test_2” },
{ "id": 2762, "description": "test_3” }
]
and I would like to get:
[ 1546, 2228, 2762 ]
for key id
.