title: JSON.stringify replacer - how to get full path
body: <p>Replacer in below code write on console current processed field name</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let a = { a1: 1, a2:1 }
  let b = { b1: 2, b2: [1,a] }
  let c = { c1: 3, c2: b }
  
  
  let s = JSON.stringify(c, function (field,value) {
    console.log(field); // full path... ???
    return value;
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>However I would like to get full "path" to field (not only its name) inside replacer function - something like this</p>
  
  <pre><code>
  c1
  c2
  c2.b1
  c2.b2
  c2.b2[0]
  c2.b2[1]
  c2.b2[1].a1
  c2.b2[1].a2
  </code></pre>
  
  <p>How to do it?</p>