Bug 62545

Summary: Don't use colon in JSON renderer to display indentation
Product: JMeter Reporter: Felix Schumacher <felix.schumacher>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: minor CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 4.0   
Target Milestone: JMETER_5.0   
Hardware: All   
OS: All   
Attachments: remove the colon from the "tab" string

Description Felix Schumacher 2018-07-16 16:44:33 UTC
Created attachment 36033 [details]
remove the colon from the "tab" string

The RenderAsJSON component uses ":    " as indentation string for a "tab". This makes the rendered JSON string an invalid JSON string.

It is better to use a string of four spaces to build the indentation as the resulting string is then valid JSON.
Comment 1 Felix Schumacher 2018-07-16 16:48:54 UTC
Date: Mon Jul 16 16:48:21 2018
New Revision: 1836054

URL: http://svn.apache.org/viewvc?rev=1836054&view=rev
Log:
Don't use a colon as part of the "tab" string when indenting JSON in RenderAsJSON.

Bugzilla Id: 62545

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