Can anyone recommend a Unix (choose your flavor) JSON parser that could be used to introspect values from a JSON response in a pipeline?

推荐答案

You can use this command-line parser (which you could put into a bash alias if you like), using modules built into the Perl core:

perl -MData::Dumper -MJSON::PP=from_json -ne'print Dumper(from_json($_))'

Json相关问答推荐

如何获取brew list作为JSON输出

Vega-Lite时钟(使用Vega-Lite中的计时器)

如何循环访问多个子数组并在单个JSON中检索数据点

用巨大的值更新SQL Server中的nvarchar(max)

当列为空时从 SQL 获取 JSON

在 json 对象中存储多个键:值对

使用Powershell将JSON文件加载到SQL Server表格

在 CodePipeline 中调用 lambda 时传递用户参数

转义 Haskell 记录的字段

使用 jq 获取特定键的所有父键

Powershell中等效的JSONPath通配符以 Select 对象中的所有数组

如何在 Django 的模板语言中获取 json 键和值?

如何从 rails 中的 respond_to 方法生成 json?

在 JSON 反序列化期间没有为System.String类型定义无参数构造函数

json和空数组

在 JSON 对象中强制执行非空字段

如何使用 Newtonsoft.Json 包在 C#(4.0) 中解析我的 json 字符串?

TypeError: b'1' 不是 JSON 可序列化的

as_json 没有在关联上调用 as_json

case 类只有一个字段时如何将json转为 case 类