title: How to combine two arrays (`keys` and `values`) into an object using JMESPath?
body: <p>I have a JSON object with two arrays — one <code>keys</code> array and one <code>values</code> array, both of the same length. Using jmespath, I want to construct a new object using the values of the <code>keys</code> array as the keys and the values of the <code>values</code> array as the values, like <a href="https://secure.php.net/manual/en/function.array-combine.php" rel="nofollow noreferrer"><code>array_combine</code></a> in PHP.</p>
  
  <p>For example, here's the input:</p>
  
  <pre><code>{
      "keys": [
          "a",
          "b",
          "c"
      ],
      "values": [
          1,
          2,
          3
      ]
  }
  </code></pre>
  
  <p>And here is the output I'm expecting:</p>
  
  <pre><code>{
      "a": 1,
      "b": 2,
      "c": 3
  }
  </code></pre>
  
  <p>Is there any built-in function to achieve this?</p>