Helper function to look up a property of a sporadic group in the JSON file. Given a field and a match, it returns
the value of the return field for the matching group. If no match is found, it returns None.
- Parameters:
field (str) – Field to look up.
match (Any) – Value to match for the given field.
return_field (str) – Field to return if a match is found.
- Return type:
Any
- Returns:
The value of the given return field if a match is found, otherwise None.