cari

Rumah  >  Soal Jawab  >  teks badan

Bagaimana untuk mendapatkan hasil yang sepadan berdasarkan syarat yang ditentukan dalam data JSON yang ditentukan?

Bagaimana untuk mendapatkan hasil yang sepadan berdasarkan syarat yang ditentukan dalam data JSON yang ditentukan?

不言不言2243 hari yang lalu1227

membalas semua(2)saya akan balas

  • 胤彬-

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

    Atas syarat apa?

    balas
    0
  • 不言

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

    biar carr = [{
    "kod": "000",
    "agyTypeCode": "1",
    "name": "Daerah Zeguo, XX City",
    "pid": null,
    "id": "21sadasdsa45dsadsa1w11ssdsw55wsd"
    }, {
    "kod": "000001",
    "agyTypeCode": "WILAYAH",
    "kanak-kanak": [{
    "kod": "01",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "kod": "0101",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": "Disyorkan",
    "isPairAc": 1,
    "kod": "0008",
    "nama": "anak kedua",
    "agyCode": "0101",
    "id": "24d0cb01b02211e8b1528dc623111881",
    "acsCode": "001"
                }, {
    "finChfName": "semak",
    "isPairAc": 0,
    "kod": "0009",
    "nama": "rumput air teh",
    "agyCode": "0101",
    "id": "8ce00b71b02211e8b1528dc623111881",
    "acsCode": "003"
                    }, {
    "finChfName": "dua",
    "isPairAc": 1,
    "kod": "0010",
    "nama": "O(∩_∩)O haha~",
    "agyCode": "0101",
    "id": "12d2f801b02311e8bd661323180bdf18",
    "acsCode": "001"
                                  , {
    "finChfName": "Ahhh",
    "isPairAc": 1,
    "kod": "0013",
    "name": "Uji perakaunan selari",
    "agyCode": "0101",
    "id": "b29c9e90c07711e8bef6315abdfc5989",
    "acsCode": "001"
                    }, {
    "finChfName": "Ahhhhh",
    "isPairAc": 0,
    "kod": "0014",
    "name": "Ujian bukan perakaunan selari",
    "agyCode": "0101",
    "id": "e9830841c07711e8a4682ddcca113e60",
    "acsCode": "002"
                                  , {
    "finChfName": "Ahhhhh",
    "isPairAc": 0,
    "kod": "0015",
    "name": "makan tepat pada masanya",
    "agyCode": "0101",
    "id": "f8d46e01c07811e8aa1929a828257f4d",
    "acsCode": "002"
                    }, {
    "finChfName": "pelan",
    "isPairAc": 1,
    "kod": "0017",
    "nama": "大沙达",
    "agyCode": "0101",
    "id": "7e7a9a41c16211e887ac6329230785bc",
    "acsCode": "001"
               }],
    "name": "Jabatan Ekonomi Jabatan Am Sukan Negara",
    "pid": "f514a5a7e0d14e13aae98e47ec369a97",
    "id": "b9c8b045fb3848c2ae3a7dc44e0db17b"
             }],
    "name": "Jabatan Agung Sukan Negara",
    "pid": "ee22f49ae9c1400599f5d52acbbaa006",
    "id": "f514a5a7e0d14e13aae98e47ec369a97"
    }],
    "name": "Zon Ujian",
    "pid": null,
    "id": "ee22f49ae9c1400599f5d52acbbaa006"
    }, {
    "kod": "009",
    "agyTypeCode": "1",
    "kanak-kanak": [{
    "finChfName": "dia he he",
    "isPairAc": 0,
    "kod": "002",
    "name": "Data pentadbiran",
    "agyCode": "009",
    "id": "24767c81349011e8aff46ff006323009",
    "acsCode": "002"
    }, {
    "finChfName": "Api Guntur Petir",
    "isPairAc": 1,
    "kod": "0051",
    "nama": "Ya",
    "agyCode": "009",
    "id": "c98158e17f6211e88778c177655f0ba3",
    "acsCode": "001"
    }, {
    "finChfName": "Bahagian",
    "isPairAc": 1,
    "kod": "0053",
    "name": "Sistem perakaunan baharu (perniagaan akhir tempoh)",
    "agyCode": "009",
    "id": "2c95d8c1803511e89a37851b1a8b5408",
    "acsCode": "001"
    }, {
    "finChfName": "Zhang San",
    "isPairAc": 1,
    "kod": "0121",
    "name": "Data perniagaan",
    "agyCode": "009",
    "id": "80d0a7e1cbd911e8bd4bd1c35525136a",
    "acsCode": "001"
    }, {
    "finChfName": "Ahh",
    "isPairAc": 1,
    "kod": "0128",
    "nama": "ujian",
    "agyCode": "009",
    "id": "e4700fa1d5e011e8b887a9873dfd9ff1",
    "acsCode": "001"
    }],
    "name": "Jabatan Kewangan Daerah Zeguo, XX City",
    "pid": "ee22f49ae9c1400599f5d52acbbaa010",
    "id": "ee22f49ae9c1400599f5d52acbb88009"
    }, {
    "kod": "010",
    "agyTypeCode": "AGEN",
    "kanak-kanak": [{
    "finChfName": "Ujian",
    "isPairAc": 1,
    "kod": "0001",
    "name": "Pentadbiran",
    "agyCode": "010",
    "id": "15fe5ea07f6011e89490b3fa58ca1a1f",
    "acsCode": "001"
    }, {
    "finChfName": "Ujian",
    "isPairAc": 1,
    "kod": "0002",
    "nama": "ujian",
    "agyCode": "010",
    "id": "2e2bd9507ff911e8bd8ce5ebdd3691a4",
    "acsCode": "001"
    }, {
    "finChfName": "Hmm",
    "isPairAc": 1,
    "kod": "0007",
    "name": "Ujian 724",
    "agyCode": "010",
    "id": "1c4c07718f1511e89b3fe363a3d40d6b",
    "acsCode": "001"
    }, {
    "finChfName": "Sun Zhensheng",
    "isPairAc": 0,
    "kod": "002",
    "name": "Data pentadbiran",
    "agyCode": "010",
    "id": "24767c81349011e8aff46ff006323010",
    "acsCode": "002"
    }],
    "name": "Jabatan Petisyen Daerah Zeguo, XX City",
    "pid": "ee22f49ae9c1400599f5d52acbbaa010",
    "id": "ee22f49ae9c1400599f5d52acbb88010"
    }, {
    "kod": "022",
    "agyTypeCode": "AGEN",
    "kanak-kanak": [{
    "finChfName": "Chu Yunfei",
    "isPairAc": 1,
    "kod": "0002",
    "name": "Data wilayah",
    "agyCode": "022",
    "id": "663982b0831f11e88a4d05ce24bfba35",
    "acsCode": "001"
    }, {
    "finChfName": "Ahh",
    "isPairAc": 1,
    "kod": "0003",
    "nama": "ujian",
    "agyCode": "022",
    "id": "17e1f3c0832611e89e41871149504fa5",
    "acsCode": "001"
    }, {
    "finChfName": "aa",
    "isPairAc": 1,
    "kod": "0014",
    "name": "Ujian 2",
    "agyCode": "022",
    "id": "14ff2ba1864611e8b71c29a3b3016125",
    "acsCode": "001"
    }, {
    "finChfName": "Wang Na",
    "isPairAc": 1,
    "kod": "0016",
    "name": "data ujian wn",
    "agyCode": "022",
    "id": "1493d5f1866211e8be7a17c7191e695f",
    "acsCode": "001"
    }, {
    "finChfName": "Julai",
    "isPairAc": 1,
    "kod": "0027",
    "name": "Julai",
    "agyCode": "022",
    "id": "26b504d1899511e8b1139f00fbd2f491",
    "acsCode": "001"
    }, {
    "finChfName": "Ah",
    "isPairAc": 1,
    "kod": "0029",
    "nama": "Ahhhhhh",
    "agyCode": "022",
    "id": "e142ed0189ac11e8a943b36e0f97cad8",
    "acsCode": "001"
    }, {
    "finChfName": "JD.com",
    "isPairAc": 0,
    "kod": "0038",
    "nama": "ybkdata",
    "agyCode": "022",
    "id": "8e444c408b0811e8935bb38bf14dc4d5",
    "acsCode": "002"
    }, {
    "finChfName": "ujian ujian ujian",
    "isPairAc": 1,
    "kod": "0040",
    "name": "ujian ujian ujian",
    "agyCode": "022",
    "id": "ff5855318b2511e8895bc71f69695839",
    "acsCode": "001"
    }, {
    "finChfName": "Tempat",
    "isPairAc": 1,
    "kod": "0043",
    "name": "Ujian 333",
    "agyCode": "022",
    "id": "e57553508b3111e8a2148d98b1a6b4c9",
    "acsCode": "001"
    }, {
    "finChfName": "Oh sial",
    "isPairAc": 1,
    "kod": "0045",
    "name": "Stephen Chow",
    "agyCode": "022",
    "id": "cec127618b3611e8a45ecf53378eacfd",
    "acsCode": "001"
    }, {
    "finChfName": "Biarkan orang",
    "isPairAc": 0,
    "kod": "0051",
    "name": "tempoh awal",
    "agyCode": "022",
    "id": "34e1cee1907411e895aeb3268240930f",
    "acsCode": "002"
    }, {
    "finChfName": "ujian oracle",
    "isPairAc": 0,
    "kod": "0054",
    "nama": "ujian oracle",
    "agyCode": "022",
    "id": "ae1cf381979e11e89b283709976946b2",
    "acsCode": "002"
    }],
    "name": "Jabatan Sains dan Teknologi Daerah Zeguo, XX City",
    "pid": "ee22f49ae9c1400599f5d52acbbaa010",
    "id": "ee22f49ae9c1400599f5d52acbb88022"
    }, {
    "kod": "302",
    "agyTypeCode": "1",
    "kanak-kanak": [{
    "kod": "302001",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 1,
    "kod": "0001",
    "name": "data wilayah",
    "agyCode": "302001",
    "id": "b4d0b6f0d2de11e8b3ff6531e1dc713e",
    "acsCode": "001"
             }],
    "name": "Jabatan Perlindungan Alam Sekitar Wilayah Hubei pada tahap ini",
    "pid": "aaf65c00af4011e8ba0e4bb47edc5366",
    "id": "b926dde0af4011e8ba0e4bb47edc5366"
    }],
    "name": "Jabatan Perlindungan Alam Sekitar Wilayah Hubei",
    "pid": "",
    "id": "aaf65c00af4011e8ba0e4bb47edc5366"
    }, {
    "kod": "555",
    "agyTypeCode": "1",
    "kanak-kanak": [{
    "kod": "555001",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555001",
    "id": "c9484f80d20c11e897a897a9c63972b2",
    "acsCode": "005"
              }, {
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0002",
    "name": "Data Institusi Saintifik",
    "agyCode": "555001",
    "id": "dc624b70d20c11e897a897a9c63972b2",
    "acsCode": "004"
             }],
    "name": "Jawatankuasa Kebangsaan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836160"
    }, {
    "kod": "555002",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555002",
    "id": "2fec2380d12511e89f0605f50d407345",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Perlembagaan dan Undang-undang",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836161"
    }, {
    "kod": "555003",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555003",
    "id": "6cef62c0d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Pemeriksaan dan Kehakiman",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836162"
    }, {
    "kod": "555004",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555004",
    "id": "75fe8610d12511e89f0605f50d407345",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Kewangan dan Ekonomi",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836163"
    }, {
    "kod": "555005",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555005",
    "id": "7e1d3010d20d11e8a2a5bb48be4c326f",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Pendidikan, Sains, Kebudayaan dan Kesihatan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836164"
    }, {
    "kod": "555006",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555006",
    "id": "7e1d5720d20d11e8a2a5bb48be4c326f",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Hal Ehwal Luar Negeri",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836165"
    }, {
    "kod": "555007",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555007",
    "id": "92a69a80d20d11e8a2a5bb48be4c326f",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Cina Luar Negara",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836166"
    }, {
    "kod": "555008",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555008",
    "id": "6cef62c1d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Majlis Pertahanan Alam Sekitar dan Sumber",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836167"
    }, {
    "kod": "555009",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555009",
    "id": "6cef62c2d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Pertanian dan Hal Ehwal Luar Bandar",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836168"
    }, {
    "kod": "555010",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555010",
    "id": "6cef62c3d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Pembinaan Sosial",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836169"
    }, {
    "kod": "555011",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555011",
    "id": "6cef62c4d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Perwakilan Jawatankuasa Kelayakan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836170"
    }, {
    "kod": "555012",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555012",
    "id": "6cef62c5d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Kerja Belanjawan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836171"
    }, {
    "kod": "555013",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555013",
    "id": "6cef62c6d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "***Jawatankuasa Undang-undang Asas",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836172"
    }, {
    "kod": "555014",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555014",
    "id": "6cef62c7d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Undang-undang Asas Macao",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836173"
    }, {
    "kod": "555015",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555015",
    "id": "6cef62c8d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jabatan Setiausaha",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836174"
    }, {
    "kod": "555016",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555016",
    "id": "6cef62c9d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Makmal Penyelidikan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836175"
    }, {
    "kod": "555017",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555017",
    "id": "6cef62cad2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jabatan hubungan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836176"
    }, {
    "kod": "555018",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555018",
    "id": "6cef62cbd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jabatan Luar Negeri",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836177"
    }, {
    "kod": "555019",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555019",
    "id": "6cef62ccd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jabatan berita",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836178"
    }, {
    "kod": "555020",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555020",
    "id": "6cef62cdd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jabatan HR",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836179"
    }, {
    "kod": "555021",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555021",
    "id": "6cef62ced2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jabatan pengurusan hal ehwal institusi",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836180"
    }, {
    "kod": "555022",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555022",
    "id": "6cef62cfd2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Jawatankuasa Parti Pertubuhan",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836181"
    }, {
    "kod": "555023",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555023",
    "id": "6cef62d0d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "Suruhanjaya Pemeriksaan Disiplin",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836182"
    }, {
    "kod": "555024",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555024",
    "id": "6cef62d1d2c811e8a5199f3621c38b01",
    "acsCode": "005"
             }],
    "name": "kesatuan sekerja organik",
    "pid": "617289d0d04411e8bd8033bd2a0ffffdf",
    "id": "1051724173375836183"
    }, {
    "kod": "555025",
    "agyTypeCode": "1",
    “kanak-kanak”: [{
    "finChfName": batal,
    "isPairAc": 0,
    "kod": "0001",
    "name": "Data sekolah rendah dan menengah",
    "agyCode": "555025",
    "id": "6cef62d2d2c811e8a5199f3621c38b01",
    "acsCode": "005"
    '

    balas
    0
  • Batalbalas