how to access multiple keys in jsonpath in one go

Viewed 1767

I am storing a path of a hash in config (using ruby in JsonPath), and in one case, I need to get multiple fields for one variable.

Example:

{
 "a" => 1,
 "b" => 2,
 "c" => 3,
 "d" => 4,
 "e" => 5,
}

For one variable, I need the value to be 3-4-5. Is there a way to access "c", "d", and "e" from JsonPath in one go?

$$$$$$$$$$$$$Edit$$$$$$$$$$$$$

It seems this is currently limitation of jsonpath gem, please feel free to suggest at other gem/way to do so.

2 Answers
Related