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 2018/11/07 05:36:04 UTC

[Bug 62889] New: JSON Path Tester not formatting JSON-content

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

            Bug ID: 62889
           Summary: JSON Path Tester not formatting JSON-content
           Product: JMeter
           Version: 5.0
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: arnold.strasser@r-software.at
  Target Milestone: JMETER_5.1

Created attachment 36248
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36248&action=edit
Response not formatted

Hi! 

It seems that the JSON Path Tester in the "View Results Tree"-element has a
minor bug.

If the JSON-response starts with an "[", the response content doesnt get
formatted as you can see in the attached screenshots. Any other JSON-response
is correctly formatted. 

Best regards,
Arnold

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

[Bug 62889] JSON Path Tester not formatting JSON-content

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

--- Comment #2 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 36249
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36249&action=edit
Add JSONArray and JSONValue detection for pretty printing

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

[Bug 62889] JSON Path Tester not formatting JSON-content

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
You are right. We missed to check for JSONArray in RenderAsJson (around line
71,where we checked for JSONObject) and handle it.

If no one beats me to it, I will add that this evening.

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

[Bug 62889] JSON Path Tester not formatting JSON-content

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|HTTP                        |Main
           Keywords|                            |FixedInTrunk
         Resolution|---                         |FIXED

--- Comment #3 from Felix Schumacher <fe...@internetallee.de> ---
Thans for the report. The fix will be included in 5.1

Date: Wed Nov  7 17:19:24 2018
New Revision: 1846060

URL: http://svn.apache.org/viewvc?rev=1846060&view=rev
Log:
Format JSON Arrays when displayed with JSON Path Tester

Bugzilla Id: 62889

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/RenderAsJSON.java
    jmeter/trunk/test/src/org/apache/jmeter/visualizers/TestRenderAsJson.java
    jmeter/trunk/xdocs/changes.xml

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