Httper-iOS icon indicating copy to clipboard operation
Httper-iOS copied to clipboard

The prettify output of the array is weird

Open dragon-fish opened this issue 4 years ago • 1 comments

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 avatar Dec 02 '20 08:12 dragon-fish

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

lm2343635 avatar Dec 05 '20 02:12 lm2343635