In my scenario, there is a JSON array with key-value pairs where the values are arrays. Here's an example:
json = {foo:[1,2],bar:[3,4],pi:[5]}
I am looking for a way to generate all possible combinations of these parameters for any number of keys. The desired output would be a list like:
{foo:1, bar:3, pi:5}
{foo:1, bar:4, pi:5}
{foo:2, bar:3, pi:5}
{foo:2, bar:4, pi:5}