mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-24 14:48:41 +01:00
JSON in QueryResult should always be indented
Some APIs return the wrong Content-Type 'application/html', but valid JSON as payload. In this cases the data is still typeof object and a indented JSON makes it easier to work with. However JSON folding and highlighting will still be off in this case.
This commit is contained in:
parent
820e3033ea
commit
76a26b634d
@ -32,7 +32,7 @@ const formatResponse = (data, mode) => {
|
|||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
return safeStringifyJSON(data);
|
return safeStringifyJSON(data, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEventListener, headers, error }) => {
|
const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEventListener, headers, error }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user