Solution found:
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestconsoleApp
{
class Program
{
private static string testJson = @" {
""717310901"": {
""id"": ""717310901"",
""name"": ""Test 1""
},
""100000114454617"": {
""id"": ""100000114454617"",
""name"": ""Test 2""
},
""100000773805478"": {
""id"": ""100000773805478"",
""name"": ""Test 3""
}
}";
static void Main(string[] args)
{
Dictionary<String, Friend> friends =
JsonConvert.DeserializeObject<Dictionary<String, Friend>>(testJson);
foreach(Friend friend in friends.Values)
{
Console.WriteLine(friend.Name);
Console.ReadLine();
}
}
}
class Friend
{
public String Id { get; set; }
public String Name { get; set; }
}
}
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/parse-facebook-friend-list-in-josn-tp5712133p5712823.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid