【问题标题】:Is there a way to Collapse All json's fields in Postman有没有办法折叠 Postman 中的所有 json 字段
【发布时间】:2016-11-26 11:05:40
【问题描述】:

我正在使用 chrome-app Postman,我有时会检索又长又复杂的 json 对象。 为了一个简单的工作,我需要折叠所有 json 对象,但我在程序中找不到选项(如果有),或者如何去做。 到目前为止,我使用另一个应用程序 (JsonViewer) 只是为了更好地查看结果。

有没有办法折叠应用中所有的json字段?

例如 来自:

{
  "some object" : {
      "some att" : "foo",
      "other att" : "bar"
    },
  "somearray" : [
     "asdf",
     "qwer",
     "zxcv"
  ]
}

到:

{
  "some object" : { + },
  "somearray" : [ + ]
}

PD:我知道有一个选项可以逐字段折叠 json,但我想要的是折叠所有对象。 在大型对象中,该功能受到高度赞赏

【问题讨论】:

    标签: json postman json-view


    【解决方案1】:

    你应该能够使用 Alt + 0 折叠所有和 Alt + Shift + 0 展开。

    here 的问题,它指向所有从ace 工作的快捷方式。

    【讨论】:

      【解决方案2】:

      在 Mac 上是 Command⌘ + Option⌥ + 0 折叠所有和 Command⌘ + Option⌥ + Shift⇧ + 0 展开。

      【讨论】:

        猜你喜欢
        • 2010-12-16
        • 1970-01-01
        • 2018-03-04
        • 2017-09-01
        • 1970-01-01
        • 2017-04-07
        • 1970-01-01
        • 1970-01-01
        • 2010-09-17
        相关资源
        最近更新 更多