mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[PR #813] [MERGED] Modify responseType by Object(json) or Array(json5) #2873
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2873
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/813
Author: @shtakai
Created: 4/26/2020
Status: ✅ Merged
Merged: 4/26/2020
Merged by: @liyasthomas
Base:
master← Head:feature/json_array📝 Commits (1)
868eab0Modify responseType by Object(json) or Array(json5)📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
pages/index.vue(+1 -1)📄 Description
Why?
support response json array · Issue #805 · liyasthomas/postwoman
How?
Behavior
Editor component can't recognize json Array.
(It accepts json Object.)
If JSON Array, set this.responseBodyType 'json5'.
Fixing
isjson/ etc`, responseBodyType will be setjson: response.body.type's constructor name isObject. (Usual case)json5: response.body.type's constructor name isArray. (#805 's case)Screenshots
JSON Array


JSON Object


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.