bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Response area does not show real response

Open danielraab opened this issue 1 year ago • 2 comments

In case the response of an endpoint returns a slightly invalid json, the response view looses some data. The original response is:

{
	"parent": {
		"child": {
			"id": "490017",
			"availability": "2"
		},
		"child": {
			"id": "490055",
			"availability": "2"
		}
	}
}

will be shown like:

{
	"parent": {
		"child": {
			"id": "490055",
			"availability": "2"
		}
	}
}

Bruno is also Parsing the content to json although the response content-type, is for exampel "text/plain".

I think it is important for an API client that the displayed response is maching the real response. Prettifing is of course also an important feature but should not corrupt the responeded data.

danielraab avatar Jan 22 '24 15:01 danielraab

What can we do against it ?

danielraab avatar Mar 12 '24 21:03 danielraab

What can we do against it ?

Not much currently with standard Bruno, but I implemented a "raw" preview mode for this on my fork. The Fork is compatible with standard Bruno and just includes some you can try it out here: https://github.com/Its-treason/bruno/releases/tag/nightly

Its-treason avatar Mar 12 '24 22:03 Its-treason