How to combine two arrays (`keys` and `values`) into an object using JMESPath?
问题 I have a JSON object with two arrays — one keys array and one values array, both of the same length. Using jmespath, I want to construct a new object using the values of the keys array as the keys and the values of the values array as the values, like array_combine in PHP. For example, here's the input: { "keys": [ "a", "b", "c" ], "values": [ 1, 2, 3 ] } And here is the output I'm expecting: { "a": 1, "b": 2, "c": 3 } Is there any built-in function to achieve this? 回答1: Unfortunately, it