Hi all,
I have a list of dictionaries (parsed out of JSON, so if there are better libraries for handling this I'm open) that I am trying to search to find if one key matches a value. For example, my list of dictionaries looks like this:
[
{ 'id': '123', 'content': 'abcd', 'other': 'blah'},
{ 'id': '345', 'content': 'asjh', 'other': 'blah'},
{ 'id': '567', 'content': 'dsss', 'other': 'blah'},
{ 'id': '789', 'content': 'ddd', 'other': 'blah'},
{ 'id': '901', 'content': 'd', 'other': 'blah'},
]
I would like to get the dictionary from this list whose 'id' value matches '123' but I don't want to use the FOR loop inside of an RF keyword. Are there any existing libraries (some way of using Collections, maybe) that will let me do this? I don't want to have to go down the road of writing my own library just for this case if I don't have to.
Thanks in advance,
Trey