title: structured query language for JSON (in Python)
body: <p>I am working on a system to output a JSON file and I use Python to parse the data and display it in a UI (PySide). I now would like to add filtering to that system and I think instead of writing a query system, if there was one out there for JSON (in Python), that would save me a lot of development time. I found this thread:  </p>
  
  <p><a href="https://stackoverflow.com/questions/777455/is-there-a-query-language-for-json">Is there a query language for JSON?</a>  </p>
  
  <p>but that's more for a Web-based system. Any ideas on a Python equivalent?  </p>
  
  <p>EDIT [for clarity]:  </p>
  
  <p>The format the data that I'll be generating is like this:  </p>
  
  <pre><code>{
      "Operations": [
      {
          "OpID": "0", 
          "type": "callback", 
          "stringTag1": "foo1", 
          "stringTag2": "FooMsg", 
          "Children": [...],
          "value": "0.000694053"
     },
     {
          "OpID": "1", 
          "type": "callback", 
          "stringTag1": "moo1", 
          "string2": "MooMsg", 
          "Children": [...],
          "value": "0.000468427"
     }
  }
  </code></pre>
  
  <p>Where 'Children' could be nested arrays of the same thing (other operations). The system will be built to allow users to add their own tags as well to the data. My hope was to have a querying system that would allow users to define their own 'filters' as well, hence the question about the querying language. If there was something that would let me do something like "SELECT * WHERE "type" == "callback" and get the requisite operations back, that would be great.  </p>
  
  <p>The suggestion of Pync is interesting, I'll give that a look.</p>