Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

Get Access to returned Json key

$
0
0

Good morning.
This is the returned Json string form my php file

{
    "data": [
        {
            "DT_RowId": "row_10",
            "tblMembers": {
                "nminstitution": "rtyert",
                "nminstitutionlocal": "ertert",
                "distinctivetitle": "tyrt5ywe5r",
                "LglStatusId": "1",
                "LevelId": "2",
                "CountryId": "1",
                "RegionId": "1",
                "webst": "trhytrhrst",
                "address": "Address 8",
                "phone": "9999999999",
                "fax": "5464022670",
                "email": "k256@ert.gr"
            },
            "tblLglStatus": {
                "LegalName": "Private"
            },
            "tblLevel": {
                "NameOfLevel": "Regional"
            },
            "TblCountries": {
                "CountryName": "Country1"
            },
            "TblRegions": {
                "NameOfRegion": "Region East"
            }
        },
        {
            "DT_RowId": "row_11",
            "tblMembers": {
                "nminstitution": "municipality of Opppp",
                "nminstitutionlocal": "BlahNlah",
                "distinctivetitle": "municipality of BlahBlah",
                "LglStatusId": "2",
                "LevelId": "2",
                "CountryId": "1",
                "RegionId": "1",
                "webst": "www.kkkkkk.gr",
                "address": "my address",
                "phone": "",
                "fax": "",
                "email": "pt@oote.gr"
            },
            "tblLglStatus": {
                "LegalName": "Public"
            },
            "tblLevel": {
                "NameOfLevel": "Regional"
            },
            "TblCountries": {
                "CountryName": "Country1"
            },
            "TblRegions": {
                "NameOfRegion": "Region1"
            }
        }
    ],
    "options": {
        "tblMembers.LglStatusId": [
            {
                "label": "Ngo",
                "value": "3"
            },
            {
                "label": "Private",
                "value": "1"
            },
            {
                "label": "Public",
                "value": "2"
            }
        ],
        "tblMembers.LevelId": [
            {
                "label": "Local",
                "value": "3"
            },
            {
                "label": "National",
                "value": "1"
            },
            {
                "label": "Regional",
                "value": "2"
            }
        ],
        "tblMembers.CountryId": [
            {
                "label": "Country2",
                "value": "2"
            },
            {
                "label": "Country1",
                "value": "1"
            }
        ],
        "tblMembers.RegionId": [
            {
                "label": "Region2",
                "value": "2"
            },
            {
                "label": "Region3",
                "value": "3"
            },
            {
                "label": "Region4",
                "value": "4"
            },
            {
                "label": "Region1",
                "value": "1"
            }
        ]
    },
    "files": [],
    "searchPanes": {
        "options": []
    }
}

how i get access to this key? "CountryId": "1"
i am trying to use this one you described here: https://datatables.net/blog/2017-09-01#.NET, but with no success until now.
Thanks in advance

EDIT: Code formatting updated by Kevin


Viewing all articles
Browse latest Browse all 3740