You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/07/27 12:05:44 UTC

[Bug 63615] New: JSON Path Extractor is giving the duplicate Values

https://bz.apache.org/bugzilla/show_bug.cgi?id=63615

            Bug ID: 63615
           Summary: JSON Path Extractor is giving the duplicate Values
           Product: JMeter
           Version: 4.0
          Hardware: PC
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: kandasurya912@gmail.com
  Target Milestone: JMETER_5.2

Hi Team,

[{
                "temperature": 54.4461,
                "area": "US",
                "listeners": [{
                        "area": 1,
                        "areaCode": 0,
                        "places": 780
                }],
                "province": "california"
        },
        {
                "temperature": 59.4461,
                "area": "US",
                "listeners": [{
                        "area": 1,
                        "areaCode": 3,
                        "places": 780
                }],
                "province": "ohaiio"
        },
        {
                "temperature": 51.4461,
                "area": "US",
                "listeners": [{
                        "area": 1,
                        "areaCode": 0,
                        "places": 780
                }],
                "province": "florida"
        },
        {
                "temperature": 54.4461,
                "area": "US",
                "listeners": [{
                        "area": 1,
                        "areaCode": 0,
                        "places": 780
                }],
                "province": "california"
        }
]

I have a json like this and i am trying to extract temperature of the places
where area code is 0

We have used the below path to extract the json values.

$[?(@.listeners.[?(@.areaCode == 0)])].temperature

Instead of taking 3 values the json extractor is taking all the values.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63615] JSON Path Extractor is giving the duplicate Values

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63615

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
   Target Milestone|JMETER_5.2                  |---
           Severity|blocker                     |minor
             Status|NEW                         |RESOLVED

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Please use the mailing list to ask questions about the usage of JMeter.

See http://jmeter.apache.org/mail2.html#JMeterUser for subscribing and
interacting with the mailing list.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63615] JSON Path Extractor is giving the duplicate Values

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63615

kandasurya912@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from kandasurya912@gmail.com ---
Hi Felix,

I have been trying from my end in all possible combinations. I am getting
duplicate values. Hence reopening the ticket.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63615] JSON Path Extractor is giving the duplicate Values

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63615

kandasurya912@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
                 CC|                            |kandasurya912@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63615] JSON Path Extractor is giving the duplicate Values

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63615

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|REOPENED                    |RESOLVED

--- Comment #3 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Your json path does not seem to work in any of the online evaluators I have
tried. 
I think only the first part is taken into account.

-- 
You are receiving this mail because:
You are the assignee for the bug.