Let's say I have a bit of JSON that looks like this
{"fish": [ {"name": "pike","version": 1 }, {"name": "haddock","version": 2 } ],"current_fish_version": 2}And I wanted to get the name of the fish with the version equal to current_fish_version.
How would I go about doing that?