Merge pull request #813 from shtakai/feature/json_array

This commit is contained in:
Liyas Thomas 2020-04-26 10:24:44 +05:30 committed by GitHub
commit 3924077b97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1474,7 +1474,7 @@ export default {
this.responseType === "application/vnd.api+json"
) {
this.responseBodyText = JSON.stringify(this.response.body, null, 2)
this.responseBodyType = "json"
this.responseBodyType = this.response.body.constructor.name === "Object" ? "json" : "json5"
} else if (this.responseType === "text/html") {
this.responseBodyText = this.response.body
this.responseBodyType = "html"