public static void LoadItemsFromJson()
 {
     _items = new Dictionary<Guid, KnownService>();
     //TODO: switch over to ServiceStack.Text when it gets bound.
     KnownService service;
     string itemsJson = ResourceLoader.GetEmbeddedResourceString(typeof(KnownServices).GetTypeInfo().Assembly, "KnownServices.json");
     var json = JValue.Parse(itemsJson);
     foreach (var item in json.Children())
     {
         JProperty prop = item as JProperty;
         service = new KnownService() { Name = prop.Value.ToString(), ID = Guid.ParseExact(prop.Name, "d") };
         _items.Add(service.ID, service);
     }
 }
        public static void LoadItemsFromJson()
        {
            _items = new Dictionary <Guid, KnownService>();
            //TODO: switch over to ServiceStack.Text when it gets bound.
            KnownService service;
            string       itemsJson = ResourceLoader.GetEmbeddedResourceString(typeof(KnownServices).GetTypeInfo().Assembly, "KnownServices.json");
            var          json      = JValue.Parse(itemsJson);

            foreach (var item in json.Children())
            {
                JProperty prop = item as JProperty;

                service = new KnownService()
                {
                    Name = prop.Value.ToString(), ID = Guid.ParseExact(prop.Name, "d")
                };
                _items.Add(service.ID, service);
            }
        }