title: How do I query json subobjects and return the whole parent?
body: <p>I don't want to write loops.. I want to see the all the choices available (using LINQ, SelectTokens, JSON.NET or any other some tools) that lets me return a/an array object relative to something inside.For example:</p>
  
  <pre><code>{
      "theFamilies": [{
          "parent1": "Joe",
          "parent2": "Mary",
          "child1": "Andy"
      }, {
          "parent1": "Bob",
          "parent2": "Mary",
          "child1": "Mark"
      }]
  }
  </code></pre>
  
  <p>Return a list of the entire object(s) that contain <code>"parent2" = "Mary"</code>.</p>
  
  <p>What if.. the nesting were deeper?  Is there a nice way of avoid/ignoring nesting depth and recursively get all that satisfy the condition that does not require any coding change?</p>
  
  <p>Any comments regarding the benefits or detriments of each solution would be especially appreciated.</p>