Class RenderAsJSON

java.lang.Object
org.apache.jmeter.visualizers.SamplerResultTab
org.apache.jmeter.visualizers.RenderAsJSON
All Implemented Interfaces:
ResultRenderer

@AutoService(ResultRenderer.class) public class RenderAsJSON extends SamplerResultTab implements ResultRenderer
  • Constructor Details

    • RenderAsJSON

      public RenderAsJSON()
  • Method Details

    • renderResult

      public void renderResult(SampleResult sampleResult)
      Specified by:
      renderResult in interface ResultRenderer
    • prettyJSON

      public static String prettyJSON(String json)
      Pretty-print JSON text
      Parameters:
      json - input text
      Returns:
      prettied json string
    • prettyJSON

      public static String prettyJSON(String json, String tabSeparator)
      Pretty-print JSON text
      Parameters:
      json - input text
      tabSeparator - String tab separator
      Returns:
      prettied json string
    • toString

      public String toString()
      Specified by:
      toString in interface ResultRenderer
      Overrides:
      toString in class Object
      Returns:
      the string to be displayed by the ComboBox