How can I select a value from a JObject using another key-value pair from the same object?

Many thanks @ppr