IResourceCollection IResourceLoader.LoadResource(IResourceLocator locator, string uri) { var resourceProvider = locator.FindResourcesById(uri + ".hjson").FirstOrDefault(); var lookup = new Dictionary <string, object>(); if (resourceProvider != null) { using (var stream = resourceProvider.OpenStream()) { var json = Hjson.HjsonValue.Load(stream); var data = json as Hjson.JsonObject; BuildLookup(lookup, data); } } return(new StringResourceCollection(lookup)); }