title: How can I find matching JsonPaths of JSON elements?
body: <p>Ok imagine we have a BIG json objects with an unknown structure. </p>
  
  <p>For example, we want to extract user IDs from a very big data dump, with many subkeys. </p>
  
  <p>We only know that the field names are <code>user_id</code> but we don't know the exact path. It may be something like <code>$.db.users[*].user_id</code> or <code>$.account[*].user_id</code> or anything else. </p>
  
  <p>And lets assume we don't want to extract users that have been banned - so nothing like <code>$.profiles.banned.user_id</code> should be searched.</p>
  
  <p>So I'd like to:</p>
  
  <ol>
  <li><p>Run something and <em>map</em> our big JSON object, having ALL possible paths containing specified field name (<code>user_id</code>) in our case.</p></li>
  <li><p>Choose then what path(s) I want to use to extract the fields.</p></li>
  <li><p>Extract the data (I can do then it using any JsonPath library, so no difficulties here).</p></li>
  </ol>
  
  <p>The goal - again - is to understand the structure of the document, to list all possible JsonPath-compatible paths (step 1). </p>
  
  <p>Then I can choose what JsonPath(s) I want to use and actually extract the data.</p>
  
  <p>Is there any way to do it? Preferable, in Python (but not obligatory).</p>