MuShare / Httper-iOS

App for developers to test REST API.
https://httper.mushare.cn
GNU General Public License v3.0
415 stars 29 forks source link

The prettify output of the array is weird #80

Open dragon-fish opened 3 years ago

dragon-fish commented 3 years ago

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.

lm2343635 commented 3 years ago

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