I have two different type of JSON .Can any one tell how I can deserialize both?
{\"SearchResults\": { \"CuisineType\": \"Contemporary American\",
\"EarlyPoints\": \"100\"}}
{\"SearchResults\": [ { \"CuisineType\": \"Contemporary American\",
\"EarlyPoints\": \"100\"}] }
Thanks
The first example, the value for key
SearchResultsis an object.Your second example, the value for
SearchResultsis an array, with only one array value. That array value contains an anonymous object.