-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collapse the body object. #301
Comments
@OhYee thanks for your suggestion |
This the what return in Django {
"key1": [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}],
"key2": [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}],
"key3": [{"id": 1}, {"id": 2}, {"id": 3}, {"id": 4}, {"id": 5}],
} And this is what restclient get HTTP/1.1 200 OK
Date: Mon, 10 Dec 2018 07:22:35 GMT
Server: WSGIServer/0.2 CPython/3.7.1
Content-Type: application/json
Vary: Origin, Cookie
X-Frame-Options: SAMEORIGIN
Content-Length: 195
{
"key1": [{
"id": 1
}, {
"id": 2
}, {
"id": 3
}, {
"id": 4
}, {
"id": 5
}],
"key2": [{
"id": 1
}, {
"id": 2
}, {
"id": 3
}, {
"id": 4
}, {
"id": 5
}],
"key3": [{
"id": 1
}, {
"id": 2
}, {
"id": 3
}, {
"id": 4
}, {
"id": 5
}]
} Because the first line is Maybe add a |
大概用中文交流能方便点……
如果可以直接折叠 |
@OhYee this seems related to issue of the json beautify library, see issue here beautifier/js-beautify#1402 |
@OhYee I have implemented this JSON prettify logic on my own instead of 3rd party library. It will be published in next release. |
@OhYee you can try the latest version 0.21.0 to verify the fix |
@Huachao |
The REST client will format the json like this:
which I can not fold the key1 entirly.
And what I want is like
When the first array is too long, it's hard to see the second array quickly
The text was updated successfully, but these errors were encountered: