mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #805] support response json array #281
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#281
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?
Originally created by @ChaceYang on GitHub (Apr 23, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/805
Describe the bug

To Reproduce
Steps to reproduce the behavior:
Expected behavior
support JSON array
Desktop (please complete the following information):
@liyasthomas commented on GitHub (Apr 23, 2020):
Please use the issue template for god's sake.
Can you at least provide a test endpoint so that we could replicate issue at our end.
@ChaceYang commented on GitHub (Apr 23, 2020):
sorry about that.
To Reproduce
Steps to reproduce the behavior:
@shtakai commented on GitHub (Apr 26, 2020):
Hello. 🍣
The type it seems
{}asObjectbythis.response.body.constructor.name.But in this case, it seems
[]asArraybythis.response.body.constructor.name.I tried changing
langon Editor component's prop.Modify responseType by Object(json) or Array(json5)json=> displays errorx.json5=> displays no errors.So I modified by using
json5when the response body isArray.(
jsonwhen is isObject)I'll make PR later.
Modify responseType by Object(json) or Array(json5) by shtakai · Pull Request #813 · liyasthomas/postwoman
Thank you.