Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59831

update JsonPath from 0.5.5 to 2.4.0

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major Major
    • urltrigger-plugin
    • None
    • urltrigger-0.48

      I have a git repository where I would want to see changes on branches by certain criteria on their names.

      The JsonPath 0.5.5 does not work with regular expressions well.

      The JsonPath 2.4.0 does offer richer regular expression syntax allowing me to discover changes on revisions for multiple branches of interest.

      For the test file oldJsonContent.json you can check on https://jsonpath.herokuapp.com 

      $..[?(@.category =~ /refer.+/)].title

      should deliver
      ["Title A"]
      and the test file newJsonContent.json
      ["Sayings of the Century"]
       

            stealthdj Tony Noble
            kemalsoysal Kemal Soysal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: