I'm working with the chrome-app Postman, and im retriving sometimes long and complex json objects. For an easy work i need to collapse all the json object, but i can't find the option (if there is) in the program, or how to do it. Until now, i'm using another app (JsonViewer) just for a better view of the result.

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

for example from:

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

致:

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

PD:我知道可以 Select 逐个字段折叠json,但我想要的是折叠所有对象. 在大型对象中,这一特点受到高度重视

推荐答案

You should be able to use Alt + 0 to collapse all and Alt + Shift + 0 to uncollapse.

Was an issue here which points to all shortcuts working from ace.

Json相关问答推荐

jq不会为空输入返回非零

使用Jolt变换转换JsonArray以将关键字转移到内部JsonArray中

在Zig中解析JSON失败

在Snowflake中查询JSON时,属性名称是否支持绑定参数?

如何使用jolt规范将一个对象添加到另一个对象中并删除该对象

如何在 terraform 输出中打印一组用户信息

使用本地 JSON api react TS Axios

VBA-JSON 嵌套集合解析为 Excel

Scala - 在构建 Json 时无法删除 Key -> value "{}" 大括号的双引号

如何使用 React 从 NASA IMAGES API 中解构所需信息

在 rust 中从 API 反序列化 serde_json

使用 boost 属性树读取 int 数组

在 Postgres 中向 JSON 对象添加元素

在 Rails 3 中处理 JS/ERB 模板中的 JSON

如何在 Django JSONField 数据上聚合(最小/最大等)?

AJAX 将 JavaScript 字符串数组发布到 JsonResult 作为 List 总是返回 Null?

Protocol Buffer vs Json - 何时 Select 一个而不是另一个

JSON 和 BSON 哪个更轻量级?

Javascript:如何判断 AJAX 响应是否为 JSON

Java HashMap 与 JSONObject