I got an Object from Facebook SDK
var responsePages = (JsonObject)FBClient_.Get(new { ids =
[123123123, 123123123, 12312213, etc]});
This query returns data (see image)

Now how do I convert this into a list of objects?
I have tried following but it does not work
var pe = (from dynamic page
in (IList<object>)(object)responsePages.Values
orderby page.name ascending
select new FBPage
{
Id = Convert.ToString(page.id),
}
).ToList();
So that failed, would appreciate any help because this dynamic stuff drives me seriously mad.
Thanks
You don’t need to cast if you are using dynamic.
or if you want to use linq. (extension methods are not supported for dynamic, so you will need to do some casting,
JsonObject => IDictionary<string, dyanmic>,JsonArray => IList<dynamic>)Or you strongly typed classes.