Skip to content
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

The prettify output of the array is weird #80

Open
dragon-fish opened this issue Dec 2, 2020 · 1 comment
Open

The prettify output of the array is weird #80

dragon-fish opened this issue Dec 2, 2020 · 1 comment
Assignees

Comments

@dragon-fish
Copy link

dragon-fish commented Dec 2, 2020

Send:

GET https://api.wjghj.cn/inpageedit/

Original response:

{"status":true,"msg":["Hello world"],"about":["InPageEdit Analysis V4","Powered by: MongoDB & Express","Author: 机智的小鱼君"],"api":{"query":{"url":"https://api.wjghj.cn/inpageedit/query","method":"get"},"submit":{"url":"https://api.wjghj.cn/inpageedit/submit","method":"post"},"update":{"url":"https://api.wjghj.cn/inpageedit/update","method":"put"}}}

Shows in prettify tab:

{
  "about": [
    {
    }, {
    }, {
    }
  ],
  "api": {
    "query": {
      "method": "get",
      "url": "https://api.wjghj.cn/inpageedit/query"
    }, 
    "submit": {
      "method": "post",
      "url": "https://api.wjghj.cn/inpageedit/submit"
    }, 
    "update": {
      "method": "put",
      "url": "https://api.wjghj.cn/inpageedit/update"
    }, 
  }, 
  "msg": [
    {
    }
  ],
  "status": true
}

Notice about and msg in response. The array does not appear to be rendered correctly.

@dragon-fish dragon-fish changed the title Array is print wired in prettify response The prettify output of the array is weird Dec 2, 2020
@lm2343635
Copy link
Member

Thanks for your feedback, I will fix it in MGFormatter: https://github.com/lm2343635/MGFormatter

@lm2343635 lm2343635 self-assigned this Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants