逗人,
有人可以帮助我在 LINUX 机器上阅读JSON文件的内容而不使用 JQ,Python&红宝石即可。寻找纯粹的 SHELL 脚本。如果找到多条记录,我们需要迭代这些值。在下面的例子中,我们有2组记录,需要迭代。
{
"version": [
"sessionrestore",1
],
"windows": [
{
"tabs": [
{
"entries": [
{
"url": "http://orf.at/#/stories/2.../" (http://orf.at/#/stories/2.../%27) ,
"title": "news.ORF.at",
"charset": "UTF-8",
"ID": 9588,
"docshellID": 298,
"docIdentifier": 10062,
"persist": true
},
{
"url": "http://oracle.at/#/stories/2.../" (http://oracle.at/#/stories/2.../%27) ,
"title": "news.at",
"charset": "UTF-8",
"ID": 9589,
"docshellID": 288,
"docIdentifier": 00062,
"persist": false
}
]
}
}
}