recherche

Maison  >  Questions et réponses  >  le corps du texte

Comment obtenir des résultats correspondants en fonction de conditions spécifiées dans des données JSON spécifiées ?

Comment obtenir des résultats correspondants en fonction de conditions spécifiées dans des données JSON spécifiées ?

不言不言2243 Il y a quelques jours1224

répondre à tous(2)je répondrai

  • 胤彬-

    胤彬-2018-10-23 17:38:16

    Dans quelles conditions ?

    répondre
    0
  • 不言

    不言2018-10-23 17:24:24

    let carr = [{
    "code": "000",
    "agyTypeCode": "1",
    "name": "District de Zeguo, XX Ville",
    "pid": nul,
    "id": "21sadasdsa45dsadsa1w11ssdsw55wsd"
    }, {
    "code": "000001",
    "agyTypeCode": "RÉGION",
    "enfants": [{
    "code": "01",
    "agyTypeCode": "1",
    "enfants": [{
    "code": "0101",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": "Recommandé",
    "isPairAc": 1,
    "code": "0008",
    "name": "deuxième enfant",
    "agyCode": "0101",
    "identifiant": "24d0cb01b02211e8b1528dc623111881",
    "acsCode": "001"
                                  , {
    "finChfName": "vérifier",
    "isPairAc": 0,
    "code": "0009",
    "name": "thé eau herbe",
    "agyCode": "0101",
    "identifiant": "8ce00b71b02211e8b1528dc623111881",
    "acsCode": "003"
                    }, {
    "finChfName": "deux",
    "isPairAc": 1,
    "code": "0010",
    "name": "O(∩_∩)O haha~",
    "agyCode": "0101",
    "identifiant": "12d2f801b02311e8bd661323180bdf18",
    "acsCode": "001"
                }, {
    "finChfName": "Ahhh",
    "isPairAc": 1,
    "code": "0013",
    "name": "Tester la comptabilité parallèle",
    "agyCode": "0101",
    "identifiant": "b29c9e90c07711e8bef6315abdfc5989",
    "acsCode": "001"
                    }, {
    "finChfName": "Ahhhhh",
    "isPairAc": 0,
    "code": "0014",
    "name": "Les tests ne sont pas une comptabilité parallèle",
    "agyCode": "0101",
    "identifiant": "e9830841c07711e8a4682ddcca113e60",
    "acsCode": "002"
                }, {
    "finChfName": "Ahhhhh",
    "isPairAc": 0,
    "code": "0015",
    "name": "manger à l'heure",
    "agyCode": "0101",
    "identifiant": "f8d46e01c07811e8aa1929a828257f4d",
    "acsCode": "002"
                    }, {
    "finChfName": "plan",
    "isPairAc": 1,
    "code": "0017",
    "name": "大沙达",
    "agyCode": "0101",
    "identifiant": "7e7a9a41c16211e887ac6329230785bc",
    "acsCode": "001"
               }],
    "name": "Département Économique de la Direction Générale Nationale des Sports",
    "pid": "f514a5a7e0d14e13aae98e47ec369a97",
    "identifiant": "b9c8b045fb3848c2ae3a7dc44e0db17b"
             }],
    "name": "Département Général National des Sports",
    "pid": "ee22f49ae9c1400599f5d52acbbaa006",
    "identifiant": "f514a5a7e0d14e13aae98e47ec369a97"
    }],
    "name": "Zone de test",
    "pid": nul,
    "identifiant": "ee22f49ae9c1400599f5d52acbbaa006"
    }, {
    "code": "009",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": "lui, il,"
    "isPairAc": 0,
    "code": "002",
    "name": "Données administratives",
    "agyCode": "009",
    "identifiant": "24767c81349011e8aff46ff006323009",
    "acsCode": "002"
    }, {
    "finChfName": "Flamme de Thunder Bluff",
    "isPairAc": 1,
    "code": "0051",
    "name": "Oui",
    "agyCode": "009",
    "identifiant": "c98158e17f6211e88778c177655f0ba3",
    "acsCode": "001"
    }, {
    "finChfName": "Section",
    "isPairAc": 1,
    "code": "0053",
    "name": "Nouveau système comptable (affaires de fin de période)",
    "agyCode": "009",
    "identifiant": "2c95d8c1803511e89a37851b1a8b5408",
    "acsCode": "001"
    }, {
    "finChfName": "Zhang San",
    "isPairAc": 1,
    "code": "0121",
    "name": "Données commerciales",
    "agyCode": "009",
    "identifiant": "80d0a7e1cbd911e8bd4bd1c35525136a",
    "acsCode": "001"
    }, {
    "finChfName": "Ahh",
    "isPairAc": 1,
    "code": "0128",
    "nom": "test",
    "agyCode": "009",
    "identifiant": "e4700fa1d5e011e8b887a9873dfd9ff1",
    "acsCode": "001"
    }],
    "name": "Département financier du district de Zeguo, ville XX",
    "pid": "ee22f49ae9c1400599f5d52acbbaa010",
    "identifiant": "ee22f49ae9c1400599f5d52acbb88009"
    }, {
    "code": "010",
    "agyTypeCode": "AGEN",
    "enfants": [{
    "finChfName": "Tester",
    "isPairAc": 1,
    "code": "0001",
    "nom": "Administration",
    "agyCode": "010",
    "identifiant": "15fe5ea07f6011e89490b3fa58ca1a1f",
    "acsCode": "001"
    }, {
    "finChfName": "Tester",
    "isPairAc": 1,
    "code": "0002",
    "nom": "test",
    "agyCode": "010",
    "identifiant": "2e2bd9507ff911e8bd8ce5ebdd3691a4",
    "acsCode": "001"
    }, {
    "finChfName": "Hmm",
    "isPairAc": 1,
    "code": "0007",
    "name": "Test 724",
    "agyCode": "010",
    "identifiant": "1c4c07718f1511e89b3fe363a3d40d6b",
    "acsCode": "001"
    }, {
    "finChfName": "Sun Zhensheng",
    "isPairAc": 0,
    "code": "002",
    "name": "Données administratives",
    "agyCode": "010",
    "identifiant": "24767c81349011e8aff46ff006323010",
    "acsCode": "002"
    }],
    "name": "Département des pétitions du district de Zeguo, ville XX",
    "pid": "ee22f49ae9c1400599f5d52acbbaa010",
    "identifiant": "ee22f49ae9c1400599f5d52acbb88010"
    }, {
    "code": "022",
    "agyTypeCode": "AGEN",
    "enfants": [{
    "finChfName": "Chu Yunfei",
    "isPairAc": 1,
    "code": "0002",
    "name": "Données de la région",
    "agyCode": "022",
    "identifiant": "663982b0831f11e88a4d05ce24bfba35",
    "acsCode": "001"
    }, {
    "finChfName": "Ahh",
    "isPairAc": 1,
    "code": "0003",
    "nom": "test",
    "agyCode": "022",
    "identifiant": "17e1f3c0832611e89e41871149504fa5",
    "acsCode": "001"
    }, {
    "finChfName": "aa",
    "isPairAc": 1,
    "code": "0014",
    "name": "Test 2",
    "agyCode": "022",
    "identifiant": "14ff2ba1864611e8b71c29a3b3016125",
    "acsCode": "001"
    }, {
    "finChfName": "Wang Na",
    "isPairAc": 1,
    "code": "0016",
    "name": "données de test",
    "agyCode": "022",
    "identifiant": "1493d5f1866211e8be7a17c7191e695f",
    "acsCode": "001"
    }, {
    "finChfName": "Juillet",
    "isPairAc": 1,
    "code": "0027",
    "name": "Juillet",
    "agyCode": "022",
    "identifiant": "26b504d1899511e8b1139f00fbd2f491",
    "acsCode": "001"
    }, {
    "finChfName": "Ah",
    "isPairAc": 1,
    "code": "0029",
    "nom": "Ahhhhhh",
    "agyCode": "022",
    "identifiant": "e142ed0189ac11e8a943b36e0f97cad8",
    "acsCode": "001"
    }, {
    "finChfName": "JD.com",
    "isPairAc": 0,
    "code": "0038",
    "nom": "ybkdata",
    "agyCode": "022",
    "identifiant": "8e444c408b0811e8935bb38bf14dc4d5",
    "acsCode": "002"
    }, {
    "finChfName": "test test test",
    "isPairAc": 1,
    "code": "0040",
    "name": "test test test",
    "agyCode": "022",
    "identifiant": "ff5855318b2511e8895bc71f69695839",
    "acsCode": "001"
    }, {
    "finChfName": "Lieu",
    "isPairAc": 1,
    "code": "0043",
    "name": "Test 333",
    "agyCode": "022",
    "identifiant": "e57553508b3111e8a2148d98b1a6b4c9",
    "acsCode": "001"
    }, {
    "finChfName": "Oh merde",
    "isPairAc": 1,
    "code": "0045",
    "nom": "Stephen Chow",
    "agyCode": "022",
    "identifiant": "cec127618b3611e8a45ecf53378eacfd",
    "acsCode": "001"
    }, {
    "finChfName": "Autoriser les gens",
    "isPairAc": 0,
    "code": "0051",
    "name": "première période",
    "agyCode": "022",
    "id": "34e1cee1907411e895aeb3268240930f",
    "acsCode": "002"
    }, {
    "finChfName": "tester l'oracle",
    "isPairAc": 0,
    "code": "0054",
    "name": "tester l'oracle",
    "agyCode": "022",
    "identifiant": "ae1cf381979e11e89b283709976946b2",
    "acsCode": "002"
    }],
    "name": "Département des sciences et technologies du district de Zeguo, ville XX",
    "pid": "ee22f49ae9c1400599f5d52acbbaa010",
    "identifiant": "ee22f49ae9c1400599f5d52acbb88022"
    }, {
    "code": "302",
    "agyTypeCode": "1",
    "enfants": [{
    "code": "302001",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 1,
    "code": "0001",
    "name": "données de région",
    "agyCode": "302001",
    "identifiant": "b4d0b6f0d2de11e8b3ff6531e1dc713e",
    "acsCode": "001"
             }],
    "name": "Département provincial de la protection de l'environnement du Hubei à ce niveau",
    "pid": "aaf65c00af4011e8ba0e4bb47edc5366",
    "identifiant": "b926dde0af4011e8ba0e4bb47edc5366"
    }],
    "name": "Département provincial de la protection de l'environnement du Hubei",
    "pid": "",
    "identifiant": "aaf65c00af4011e8ba0e4bb47edc5366"
    }, {
    "code": "555",
    "agyTypeCode": "1",
    "enfants": [{
    "code": "555001",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555001",
    "identifiant": "c9484f80d20c11e897a897a9c63972b2",
    "acsCode": "005"
              }, {
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0002",
    "name": "Données de l'institution scientifique",
    "agyCode": "555001",
    "identifiant": "dc624b70d20c11e897a897a9c63972b2",
    "acsCode": "004"
             }],
    "name": "Comité des nationalités",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836160"
    }, {
    "code": "555002",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555002",
    "identifiant": "2fec2380d12511e89f0605f50d407345",
    "acsCode": "005"
             }],
    "name": "Comité Constitution et Loi",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836161"
    }, {
    "code": "555003",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555003",
    "identifiant": "6cef62c0d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Comité d'inspection et judiciaire",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836162"
    }, {
    "code": "555004",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555004",
    "identifiant": "75fe8610d12511e89f0605f50d407345",
    "acsCode": "005"
             }],
    "name": "Comité financier et économique",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836163"
    }, {
    "code": "555005",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555005",
    "identifiant": "7e1d3010d20d11e8a2a5bb48be4c326f",
    "acsCode": "005"
             }],
    "name": "Commission de l'éducation, de la science, de la culture et de la santé",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836164"
    }, {
    "code": "555006",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555006",
    "identifiant": "7e1d5720d20d11e8a2a5bb48be4c326f",
    "acsCode": "005"
             }],
    "name": "Commission des affaires étrangères",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836165"
    }, {
    "code": "555007",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555007",
    "identifiant": "92a69a80d20d11e8a2a5bb48be4c326f",
    "acsCode": "005"
             }],
    "name": "Comité chinois d'outre-mer",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836166"
    }, {
    "code": "555008",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555008",
    "identifiant": "6cef62c1d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Conseil de défense de l'environnement et des ressources",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836167"
    }, {
    "code": "555009",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555009",
    "identifiant": "6cef62c2d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Commission de l'agriculture et des affaires rurales",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836168"
    }, {
    "code": "555010",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555010",
    "identifiant": "6cef62c3d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Comité de construction sociale",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836169"
    }, {
    "code": "555011",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555011",
    "identifiant": "6cef62c4d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Comité de qualification représentatif",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836170"
    }, {
    "code": "555012",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555012",
    "identifiant": "6cef62c5d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Comité de travail budgétaire",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836171"
    }, {
    "code": "555013",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555013",
    "identifiant": "6cef62c6d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "***Comité de la Loi fondamentale",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836172"
    }, {
    "code": "555014",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555014",
    "identifiant": "6cef62c7d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Comité de la Loi fondamentale de Macao",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836173"
    }, {
    "code": "555015",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555015",
    "identifiant": "6cef62c8d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Secrétaire",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836174"
    }, {
    "code": "555016",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555016",
    "identifiant": "6cef62c9d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Laboratoire de recherche",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836175"
    }, {
    "code": "555017",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555017",
    "identifiant": "6cef62cad2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Contacter le service",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836176"
    }, {
    "code": "555018",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555018",
    "identifiant": "6cef62cbd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Département des Affaires étrangères",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836177"
    }, {
    "code": "555019",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555019",
    "identifiant": "6cef62ccd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Département Actualités",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836178"
    }, {
    "code": "555020",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555020",
    "identifiant": "6cef62cdd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Service RH",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836179"
    }, {
    "code": "555021",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555021",
    "identifiant": "6cef62ced2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Département de gestion des affaires institutionnelles",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836180"
    }, {
    "code": "555022",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555022",
    "identifiant": "6cef62cfd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Comité du Parti de l'Organisation",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836181"
    }, {
    "code": "555023",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555023",
    "identifiant": "6cef62d0d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Commission d'inspection disciplinaire",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836182"
    }, {
    "code": "555024",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555024",
    "identifiant": "6cef62d1d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "syndicat biologique",
    "pid": "617289d0d04411e8bd8033bd2a0fffdf",
    "identifiant": "1051724173375836183"
    }, {
    "code": "555025",
    "agyTypeCode": "1",
    "enfants": [{
    "finChfName": nul,
    "isPairAc": 0,
    "code": "0001",
    "name": "Données sur les écoles primaires et secondaires",
    "agyCode": "555025",
    "identifiant": "6cef62d2d2c811e8a5199f3621c38b01",
    "acsCode": "005"
    ​​

    répondre
    0
  • Annulerrépondre