Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22163

JSONPath preprocessing step returns invalid result for empty list

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.0.11
    • Server (S)
    • None
    • Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023)

      Steps to reproduce:

      1. Create an item
      2. Add a JSONPath preprocessing step
      3. Set parameters to $.items
      4. Test item with the value 
        {
            "items": []
        } 

      Result:

      Result is

      ]

      Expected:
      Result is

      []

            dgoloscapov Dmitrijs Goloscapovs
            krandell Kim Randell
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: