Domanda

I am getting an error something like tis when convertning string to object. **Sayfalar' type doent support for the array series.

var serializer = new JavaScriptSerializer();

var jsonObjectKnt = serializer.Deserialize<Sayfalar>(data);
// **I got error here 
my data like that 
data:"[{\"Id\":1,\"MenuAd\": \"ANASAYFAccz\",\"Baslik\": \"BASLIK ANA cccz\".....
È stato utile?

Soluzione

After removing the square brackets, it works fine.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top