10000 Filtering complex json object · Issue #28 · gitrows/gitrows · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Filtering complex json object #28
Open
@jumpjack

Description

@jumpjack

How can I extract only items containing property localID = 2 from this json file?

https://github.com/pcm-dpc/COVID-19/blob/master/aree/geojson/dpc-covid-19-ita-aree.json

Not working:

It would be also useful to have a CSV output.

File has this structure:

{
 "type":"FeatureCollection",
 "features": [
                {
                    "type":"Feature",
                    "geometry":
                        {
                            "type":"Polygon",
                            "coordinates":[
                                            [
                                                [9.728561228328477,45.14829523674472],[9.727777663283403,45.14869629728075],....
                                            ]
                                          ]
                        },
                    "properties":
                        {
---------->                 "localID":"2",
                            "namespace":"IT.PCMDPC",
                            "versionID":"1",
                            "ID_Evento":"1",
                            "ID_EventoS":"COVID-19-Italia",
                            "nomeLingua":"ita","nomeStatus":"standardizzato","nomeOrigin":"endonimo","nomePronun":"unpopulated","nomeFonte":"comISTAT2019",
                            "nomeTesto":"San Fiorano","nomeScript":"ital","tipoZona":"humanHealthRestrictedZone",
                            "tipoZonaSp":"areaMisureUrgentiContenimentoContagio",
                            "designIniz":"2020-03-02T00:00:00.000Z"
                            ,"designFine":"08/03/2020",
                            "dominioAmb":"tutelaSalute",
                            "nomeAutCom":"Presidente del Consiglio dei Ministri",
                            "nomeAutRuo":"authority",
                            "datasetIni":"02-03-2020",
                            "datasetFin":"08-03-2020",
                            "legNome":"misure urgenti in materia di contenimento e gestione dell'emergenza epidemiologica da COVID-19",
                            "legNomeBre":"DPCM 01/03/2020","legData":"2020-03-01T00:00:00.000Z",
                            "legDataTip":"creazione",
                            "legLink":"http://www.protezionecivile.it/amministrazione-trasparente/provvedimenti/-/content-view/view/1220881",
                            "legSpecRif":"Allegato 1",
                            "legNumID":"unpopulated",
                            "legDocUff":"unpopulated",
                            "legDataApp":"2020-03-02T00:00:00.000Z",
                            "legDataAbr":"unpopulated",
                            "legLivello":"nazionale",
                            "legGU_ID":"52 01-03-2020",
                            "legGU_ISSN":"unpopulated",
                            "legGU_ISBN":"unpopulated",
                            "legGU_Link":"https://www.gazzettaufficiale.it/eli/gu/2020/03/01/52/sg/html"
                        }
                },
            ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0