title: curl -X POST with JSON how can I filtered Integer with less then or greater then (API is from Zabbix)"
body: <p>i try to make a &quot;maintenance.get&quot; on Zabbix and what I need is the current active maintenance. which just working is:</p>
  <pre><code>curl --noproxy '*' -H &quot;Content-Type: application/json&quot; -X POST http://local.zabbix.lan/api_jsonrpc.php -d'    
  {
      &quot;jsonrpc&quot;: &quot;2.0&quot;,
      &quot;method&quot;: &quot;maintenance.get&quot;,
      &quot;params&quot;: {
          &quot;output&quot;: &quot;extend&quot;,
          &quot;search&quot;: {
              &quot;name&quot;: [&quot;Auto_&quot;]
          },
          &quot;filter&quot;: {
              &quot;active_till&quot;: &quot;1657562960&quot;
              }
          }
      },
      &quot;auth&quot;: &quot;07fxxx574444444444a65034c6xxxxx0&quot;,
      &quot;id&quot;: 1
  }
  ' | sed 's/&quot;,&quot;/\n/g'
  </code></pre>
  <pre><code>{&quot;jsonrpc&quot;:&quot;2.0
  result&quot;:[{&quot;maintenanceid&quot;:&quot;199
  name&quot;:&quot;Auto_Maintenance_2022-07-11_16:56:53\u00b4
  maintenance_type&quot;:&quot;0
  description&quot;:&quot;
  active_since&quot;:&quot;1657551360
  active_till&quot;:&quot;1657572960
  tags_evaltype&quot;:&quot;0
  timeperiods&quot;:[{&quot;timeperiodid&quot;:&quot;199
  timeperiod_type&quot;:&quot;3
  every&quot;:&quot;1
  month&quot;:&quot;0
  dayofweek&quot;:&quot;64
  day&quot;:&quot;0
  start_time&quot;:&quot;64800
  period&quot;:&quot;3600
  start_date&quot;:&quot;0&quot;}]},{&quot;maintenanceid&quot;:&quot;200
  name&quot;:&quot;Auto_Maintenance_2022-07-11_17:51:06
  maintenance_type&quot;:&quot;0
  description&quot;:&quot;
  active_since&quot;:&quot;1657554660
  active_till&quot;:&quot;1657558260
  tags_evaltype&quot;:&quot;0
  timeperiods&quot;:[{&quot;timeperiodid&quot;:&quot;200
  timeperiod_type&quot;:&quot;3
  every&quot;:&quot;1
  month&quot;:&quot;0
  dayofweek&quot;:&quot;64
  day&quot;:&quot;0
  start_time&quot;:&quot;64800
  period&quot;:&quot;3600
  start_date&quot;:&quot;0&quot;}]}],&quot;id&quot;:1}
  </code></pre>
  <p>but I get the whole list. I would need set a greater than operator to get only the number greater from today (so date in the future). what I tried with my knowledge is that but unfortunately it does not work:</p>
  <pre><code>{
      &quot;jsonrpc&quot;: &quot;2.0&quot;,
      &quot;method&quot;: &quot;maintenance.get&quot;,
      &quot;params&quot;: {
          &quot;output&quot;: &quot;extend&quot;,
          &quot;search&quot;: {
              &quot;name&quot;: [&quot;Auto_&quot;]
          },
          &quot;filter&quot;: {
              &quot;active_till&quot;: {
                  &quot;&gt;=&quot;: [1657562960]
              }
          }
      },
      &quot;auth&quot;: &quot;07f186572af264203ba65034c6cc83a0&quot;,
      &quot;id&quot;: 1
  }
  </code></pre>