JsonFeed.NET is a portable .NET library for generating and consuming JSON Feed compliant site feeds.
- .NET Framework 4.5.1+
- .NET Core 1.1+
- Mono
- UWP
- Xamarin.iOS
- Xamarin.Android
Install-Package JsonFeed.NET
JsonFeed jsonFeed = JsonFeed.Parse(jsonFeedString);
JsonFeed jsonFeed = await JsonFeed.ParseFromUriAsync(new Uri("https://jsonfeed.org/feed.json"));
JsonFeed jsonFeed = await JsonFeed.ParseFromUriAsync(new Uri("https://jsonfeed.org/feed.json"), new HttpClientHandler());
var jsonFeed = new JsonFeed
{
Title = "Dan Rigby",
Description = "Mobile App Development & More.",
HomePageUrl = @"https://danrigby.com",
FeedUrl = @"https://danrigby.com/feed.json",
Authors = new[] {
new JsonFeedAuthor
{
Name = "Dan Rigby",
Url = @"https://twitter.com/DanRigby",
}
},
Items = new List<JsonFeedItem>
{
new JsonFeedItem
{
Id = @"https://danrigby.com/2015/09/12/inotifypropertychanged-the-net-4-6-way/",
Url = @"https://danrigby.com/2015/09/12/inotifypropertychanged-the-net-4-6-way/",
Title = "INotifyPropertyChanged, The .NET 4.6 Way",
ContentText = @"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
DatePublished = new DateTime(2015, 09, 12)
}
}
};
string jsonFeedString = jsonFeed.Write();
JsonFeed jsonFeed = JsonFeed.Parse(inputJsonFeed);
jsonFeed.Write(stream);
Copyright (c) 2023 Dan Rigby
Licensed under the MIT license.