JsonFeed.NET is a portable .NET library for generating and consuming JSON Feed compliant site feeds.
- .NET Framework 4.5.1+
- UWP
- Xamarin.iOS
- Xamarin.Android
Install-Package JsonFeed.NET -Pre
JsonFeed jsonFeed = JsonFeed.Parse(jsonFeedString);
JsonFeed jsonFeed = await JsonFeed.ParseFromUriAsync(new Uri(@"https://jsonfeed.org/feed.json"));
var jsonFeed = new JsonFeed
{
Version = @"https://jsonfeed.org/version/1",
Title = "Dan Rigby",
Description = "Mobile App Development & More.",
HomePageUrl = @"http://danrigby.com",
FeedUrl = @"http://danrigby.com/feed.json",
Author = new Author
{
Name = "Dan Rigby",
Url = @"https://twitter.com/DanRigby"
},
Items = new List<FeedItem>
{
new FeedItem
{
Id = @"http://danrigby.com/2015/09/12/inotifypropertychanged-the-net-4-6-way/",
Url = @"http://danrigby.com/2015/09/12/inotifypropertychanged-the-net-4-6-way/",
Title = "INotifyPropertyChanged, The .NET 4.6 Way",
ContentText = @"This would be the text of my blog post, but that would be way too verbose to put in this sample. (;",
DatePublished = new DateTime(2015, 09, 12)
}
}
};
string jsonFeedString = jsonFeed.Serialize();
Copyright (c) 2017 Dan Rigby
Licensed under the MIT license.