You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Jmeter Tea <jm...@gmail.com> on 2018/07/16 08:02:55 UTC
Render JSON issue
About Render JSON option in View Results Tree,
RenderAsJSON have TAB_SEPARATOR = ": " This means that when rendering
JSON it creates an invalid JSON with `:` characters
{ "code":"1", "message":"Not found" }
Will be render as
{: "code":"1",: "message":"Not found"}
Is there a reason for `:` characters or can it be removed to create a valid
JSON?
Actually what's the purpose of JSON render? If the response is JSON it'll
be displayed as JSON
Thank you
Re: Render JSON issue
Posted by Felix Schumacher <fe...@internetallee.de>.
Am 16.07.2018 um 10:02 schrieb Jmeter Tea:
> About Render JSON option in View Results Tree,
> RenderAsJSON have TAB_SEPARATOR = ": " This means that when rendering
> JSON it creates an invalid JSON with `:` characters
>
> { "code":"1", "message":"Not found" }
>
> Will be render as
>
> {: "code":"1",: "message":"Not found"}
>
> Is there a reason for `:` characters or can it be removed to create a valid
> JSON?
> Actually what's the purpose of JSON render? If the response is JSON it'll
> be displayed as JSON
I think the purpose is to highlight indentation, but it is probably
better to change it to a simple four space "tab".
Felix
>
> Thank you
>