error - unable to generate the code

Jan 30, 2014 at 10:32 AM
hi there,

on my windows 7 laptop with vs2013 instaaled, i get this error

unable to generate the code: unable to cast object of type newtonsoft.json.linq.jarray to type newtonsoft.json.linq.jobject

here's my JSON.

thanks

[
{
    "page": 1,
    "pages": 6,
    "per_page": "50",
    "total": 256
},
[
    {
        "id": "ABW",
        "iso2Code": "AW",
        "name": "Aruba",
        "region": {
            "id": "LCN",
            "value": "Latin America & Caribbean (all income levels)"
        },
        "adminregion": {
            "id": "",
            "value": ""
        },
        "incomeLevel": {
            "id": "NOC",
            "value": "High income: nonOECD"
        },
        "lendingType": {
            "id": "LNX",
            "value": "Not classified"
        },
        "capitalCity": "Oranjestad",
        "longitude": "-70.0167",
        "latitude": "12.5167"
    } ..... etc.