-
Hi, Using both jq and miller, I run
I would like to use only Miller. But if I run
How to navigate inside the JSON input, to arrive to the root of Thank you {
"@context": {
"dsbase": "https://aziendeconfiscate.infocamere.it/odacWeb/",
"impresa": "dsbase:impresa/",
"idBene": "impresa:idBene",
"mBene": "impresa:mBene",
"sBene": "impresa:sBene",
"iterAmministrativoAttivo": "tipoIterAmministrativoAttivo"
},
"@graph": [
{
"@id": "impresa:LgU0qvE+USpLWpu+dbQePfm7KJfG8SOgr/YdHGlu9VI=",
"@type": "impresa",
"idBene": "2030",
"mBene": "A-PA-301560",
"sBene": "A-PA-2030-S",
"iterAmministrativoAttivo": "DESTINATO"
},
{
"@id": "impresa:23sS3uBiY1ZUgO9zTlRswfm7KJfG8SOgr/YdHGlu9VI=",
"@type": "impresa",
"idBene": "2035",
"mBene": "A-BN-312138",
"sBene": "A-BN-2035-S",
"iterAmministrativoAttivo": "DESTINATO"
},
{
"@id": "impresa:Rkp64uKWWg4624pPVH0x2Q==",
"@type": "impresa",
"idBene": "2036",
"mBene": "A-BN-312139",
"sBene": "A-BN-2036-S",
"iterAmministrativoAttivo": "DESTINATO"
},
{
"@id": "impresa:G8GiEGax1LSanPDijSE4Jg==",
"@type": "impresa",
"idBene": "2037",
"mBene": "A-BN-312140",
"sBene": "A-BN-2037-S",
"iterAmministrativoAttivo": "IN GESTIONE"
}
]
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@aborruso sorry for the delay in getting back to you! :^/ How about
|
Beta Was this translation helpful? Give feedback.
-
Hi @johnkerl For me it would be great to have some recipes page, some examples page related with some examples for empty heads like mine :) Below some example of basic things that I would like to learn how to deal with Miller. This is an example input json file {
"version": 0.1,
"generator": "andy",
"metadata": {
"timestamp_base": "2022-02-13T22:40:12.0000000Z",
"copyright": "CC-BY license"
},
"elements": [
{
"type": "person",
"id": 1,
"tags": {
"karma_level": 1000000000,
"name": "John",
"surname": "Kerl",
"country": "USA",
"country:it": "Stati Uniti",
"project": "Miller",
"about": "A too kind person"
}
},
{
"type": "person",
"id": 2,
"tags": {
"karma_level": 1,
"name": "Andrea",
"surname": "Borruso",
"country": "Italy",
"country:it": "Italia",
"project": "Miller promoting"
}
}
]
} My first goal is to have this output:
The way to do, it's not
My second goal is to have
If I run
it seem that unsparsify does not work properly, because I have two times the heading
If I run
I have the
But if I add the other two fields I obtain only the id. Running
I have again
If I can figure out how, I volunteer to write a FAQ item. I know this is not the way to refer to a field. I wrote those commands just to show my goal. Thank you |
Beta Was this translation helpful? Give feedback.
@aborruso sorry for the delay in getting back to you! :^/
How about