6

How can I format json response in jmeter? I don't want to tell which part of json answer should be showed. I want to see my response not as very long one line but as many lines formatted with new lines and tabs/spaces.

I saw:

Thanks in advance!

Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
Krzysztof
  • 1,861
  • 4
  • 22
  • 33

1 Answers1

5

I believe JSON Formatter PostProcessor is what you're looking for

JSON Formatter PostProcessor

If it is not suitable for you - take a look at JSR223 PostProcessor, it provides prev pre-defined variable (basically SampleResult instance) which gives read/write access to the parent sampler(s) response data so you will be able to do anything you want with the response using Groovy language

Dmitri T
  • 159,985
  • 5
  • 83
  • 133