title: How to robustly describe conditional expressions with AND, OR in JSON?
body: <p>Say I have an expression: </p>
  
  <pre><code>( A &gt;= 10 &amp;&amp; B == 20 ) || ( C &lt; 30 ) || ( D != 50 )
  </code></pre>
  
  <p>I can suggest the following JSON to store/represent this expression:</p>
  
  <pre><code>{ "filter": 
      [
          { "var":"A", "condition":"ge", "num":10 },
          { "var":"B", "condition":"e", "num":20 }
      ],
      [
          { "var":"C", "condition":"lt", "num":30 }
      ],
      [
          { "var":"D", "condition":"ne", "num":50 }
      ]
  }
  </code></pre>
  
  <p>in which "filter" maps to an array of sub-arrays. All elements in each sub-array are associated with AND, while all sub-arrays are associated with OR.</p>
  
  <p>Is there anything I've overlooked in writing the JSON like this?</p>