title: Is there any method to change the value of n-th depth value?
body: <p>For example, I have data like this</p>
  <pre><code>data = {
      code:1,
      status: 200,
      data:[{
          name: {
              first: 'first',
              last: 'last',
          },
          age: 12,
          address: &quot;address&quot;,
          ...
      },
      ...
      ,{
          ...
      }]
  }
  
  key = 'data[0].name.last';
  </code></pre>
  <p>I want to change the value <code>data.data[0].name.last</code> and I know last value's path(key) is <code>data[0].name.last</code>.</p>
  <p><code>data[key] = 'last1'</code> doesn't work because of array index.
  Is there any method to solve this problem?</p>