Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Modify responseType by Object(json) or Array(json5)
alyson t868eab034465
diff --git a/pages/index.vue b/pages/index.vueindex 224ffcb11..f68d7a966 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -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.bodythis.responseBodyType = "html"